Skip to content
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

App crashes on launch #5

Open
scottleibrand opened this issue Mar 12, 2020 · 1 comment
Open

App crashes on launch #5

scottleibrand opened this issue Mar 12, 2020 · 1 comment

Comments

@scottleibrand
Copy link
Contributor

2020-03-11 23:00:22.653615-0700 CoEpi[2200:721528] Can't end BackgroundTask: no background task exists with identifier 15 (0xf), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.

@ivnsch
Copy link
Collaborator

ivnsch commented Mar 14, 2020

The output is just a warning. It seems unrelated with the crash. Maybe an iOS 13 bug (what is your iOS version?) https://forums.developer.apple.com/thread/121990

I was able to reproduce the crash when starting the app after putting it in the background. The cause is this:

Termination Reason: TCC, This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSBluetoothAlwaysUsageDescription key with a string value explaining to the user how the app uses this data.

Which is weird, since we added NSBluetoothAlwaysUsageDescription to the info.plist (this is the "TODO explain user how the app uses bluetooth" dialog message).

After reinstalling the app I was not able to reproduce it.

I found that we need to add NSBluetoothPeripheralUsageDescription as well, for iOS versions older than 13. I added it in #6.
I don't think it's related though, as at least my device has iOS 13.

Let's observe it. It could be a React Native bug that prevents parsing the info.plist correctly / overrides it sometimes. Maybe it goes away with the MVP migration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants