-
Notifications
You must be signed in to change notification settings - Fork 322
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
iOS crashes when turning on Bluetooth switch at app settings(in system Settings) #286
Comments
Quick googling points to a similar report: Baseflow/flutter-permission-handler#293 Which mentions this: Baseflow/flutter-permission-handler#368 (comment) Any chance this is your problem? (check the last link) |
Not open app settings programmatically, I press home button and then click system settings icon, find app settings in list, finally turn on/off Bluetooth switch in app settings. |
Same issue on my end. Have you found any workaround for this? |
It's absolutely normal behaviour for iOS to kill application when you change its permissions in Settings app. This is the same for native apps. |
Please check this response I will close this issue for now because it seems like normal IOS behavior. |
This feels like a bug, or an oversight on Apple's side. If it's by design, then it goes against Apple's own advice. If setting changes cause an app to close, there should be an alert that communicates that to the user in advance. |
@octocat-1 I agree it is bad user experience but I think there is little we can do about it. The stack trace is not thrown by our lib but by the OS |
not really |
any solutions? |
Describe the bug
When user leave app to Settings for granting Bluetooth permission to app, app crashes after turning on Bluetooth switch.
To Reproduce
Steps to reproduce the behavior:
Error:
frame #0: 0x00000001bcb6d908 libsystem_kernel.dylib
mach_msg_trap + 8 libsystem_kernel.dylib
mach_msg_trap:-> 0x1bcb6d908 <+8>: ret
libsystem_kernel.dylib`mach_msg_overwrite_trap:
0x1bcb6d90c <+0>: mov x16, #-0x20
0x1bcb6d910 <+4>: svc #0x80
0x1bcb6d914 <+8>: ret
Target 0: (Runner) stopped.
Lost connection to device.
The text was updated successfully, but these errors were encountered: