-
-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is It expected to sent App Hangs event if System popup about FaceId permission shown ? #3472
Comments
Hello @expcapitaldev thanks for reaching out. |
The system notifications for iPhone Pro with dynamic island are not causing the app to hang according to our preliminary tests. We'll test other models without dynamic island next. |
hi guys, any updates here ? |
Unfortunately we could not reproduce this yet @expcapitaldev |
Show System Popup with Access to Face Id after Secret.load |
We noticed our App started receiving instances of these errors for our live users after we recently updated the When looking into the cause we then found this issue, alongside some similar posts: #2715 We have been able to confirm that calls to We have confirmed this using a specific test build which makes calls to the Clipboard method(s) NOTE that in order for the iOS System Privacy prompt to appear you may need to do the following:
|
Thanks for the detailed info, @julianD77. |
Dear Sentry Team, |
I tried to reproduce the issue but wasn't able to. I tried push notification permission, location permission, and a biometric prompt in our iOS-Swift sample app, see sentry-cocoa/Samples/iOS-Swift/iOS-Swift/ViewControllers/PermissionsViewController.swift Lines 83 to 110 in 27039af
I also tried all of these with a TestFlight build, but none of these triggered an ANR. @SrAdam, for which type of app do you experience the issue? A native iOS app? If yes, does it use SwiftUI or UIViewControllers? Do you build your app with React-Native or Flutter? @expcapitaldev, when looking at your code snippet you posted above, I assume you use Cordova? Is that correct? If yes, doest this only happen with Cordova, or does it also happen when interacting with native iOS code? |
Thank you Philipp for the quick answer, and let me say sorry for not being explicit enough. I am running a flutter app. My app was last updated 20 days ago, accordingly my versions: Pubspec.lock:
Podfile.lock:
Let me know if this is not the right channel for this issue and if that is the case, i would appreciate if you could point me out where to get further help. |
Thank you Philipp for answer, now I very very busy and will try to answer later for all questions and provide more code and information about case |
How do you deal with this in the meantime? Setting |
I use enableAppHangTracking: false, |
Thanks for the update, @kjxbyz. |
I can reproduce the problem by simply calling in our iOS-Swift sample app.
When the following dialog appears, the Cocoa SDK wrongly detects an app hang. So this has nothing to do with React-Native or Flutter. @brustolin, I tried to figure out how we can detect such dialogs. Watching the |
Good thing we can reproduce it now. Unfortunately I dont think there is an automatic solution for this, since Apple doesn't provide any API to report a system dialog being presented. Some alternatives:
SentrySDK.pauseAppHangTracking {
//call clipboard in here
} or SentrySDK.pauseAppHangTracking()
//call clipboard in here
SentrySDK.resumeAppHangTracking() Not a friendly solution but this is Apples fault, nothing we can do about it. |
We could start with the |
Add two methods pauseAppHangTracking and resumeAppHangTracking to ignore reported AppHangs. Fixes GH-3472
Add two methods pauseAppHangTracking and resumeAppHangTracking to ignore reported AppHangs. Fixes GH-3472
In the upcoming release, you can use the following API to ignore the app hangs. We're going to add these APIs also to Flutter and RN. SentrySDK.pauseAppHangTracking()
// Do something that might cause the app to hang,
// and you don't want the Cocoa SDK to report it.
SentrySDK.resumeAppHangTracking() |
thanks! |
Meta team SDK issue for reference: getsentry/team-mobile#186. |
Platform
iOS
Environment
Develop
Installed
Carthage
Version
8.13.1
Did it work on previous versions?
No response
Steps to Reproduce
Show System Popup with Access to Face Id after
Secret.load
Expected Result
no ANR App Hangs event
Actual Result
App Hanging
Secret.load
Are you willing to submit a PR?
No response
The text was updated successfully, but these errors were encountered: