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
Permission request for notification in SDK 37 crashes on iOS device #7562
Comments
If it's a crash from TestFlight I presume the crash happens in standalone apps, right? Have you noticed it in Expo client too? |
...returns 'undetermined' on the simulator (which I believe is expected) and displays the permissions prompt and returns 'granted' in the expo app on a physical device. The crash is only happening within testflight for some reason and isn't being logged to Sentry. Was working fine on SDK 36 so it seems to have been upgrading to SDK 37 which caused the issue. |
I honestly have no idea how to reasonably explain this bug. May I ask you:
|
This also crashed the app.
Couldn't do this since it still crashed.
Yup, the app crashes every time I call: ...it never makes it to the permission prompt. Other permission prompts like the one for location work fine.
Uninstalling, restarting, and then reinstalling from test flight produces the same bug. Here's the full stack-trace from test flight if that's helpful: |
Thank you for providing the extra stack-trace, we now know what's the problem. We will fix it and update the builders shortly. 🙌 |
@sjchmiela you the man! thanks so much for such a fast turnaround!! |
Hats off to @esamelson for quickly deploying the fix to Turtle builders! 🙇 I think if you would rebuild your app it shouldn't crash on the aforementioned code. Let me know if it does! |
Just rebuilt and can confirm it's now working as intended. Thanks @esamelson and @sjchmiela! |
# Why While investigating reasons for #7562 I [found out](https://stackoverflow.com/a/13858628/1123156) it's not recommended to use `dispatch_once_t` as a property. # How - removed all `dispatch_once_t` uses in favor of simple `if (!…) { … =` # Test Plan Expo client compiled, running `native-component-list#Permissions` screen worked ok.
@sjchmiela I'm still experience this issue with |
@sjchmiela Should I open another ticket for this? Still experiencing this issue with the location permissions. |
I crash simply by having this line in the Code import * as Permissions from 'expo-permissions'; |
🐛 Bug Report
Environment
After upgrading to SDK 37, the prompt in my application which requests a user to allow permissions for notifications now crashes my app. It works fine on the iOS simulator but crashes on an actual iOS device.
Stack-trace from Testflight is:
Steps to Reproduce
Code snippet that's causing the crash is:
Expected Behavior
I would expect that code snippet to prompt a user to allow notifications on iOS.
Actual Behavior
The app crashes. For some reason this crash isn't registering with Sentry either.
Reproducible Demo
The text was updated successfully, but these errors were encountered: