-
-
Notifications
You must be signed in to change notification settings - Fork 340
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:
|
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: