cordova-plugin-ibeacon
cordova-plugin-ibeacon copied to clipboard
[Solved] The app crashes (don't start) in iOS 13.2.2
Hello to all,
First of all, thanks for the work in this plugin. We have a problem with our app in iOS 13.2.2: the problem cannot be reproduced in the emulators, but, in real devices, the app refuses to start and its killed by itself once the splash screen is gone.
Apparently the plugin uses the "NSBluetoothPeripheralUsageDescription" string, which has been deprecated in iOS 13.2.2, so, the new "NSBluetoothAlwaysUsageDescription" must be used. Once we include this in our app config file, the described problem is solved.
I put here this information because maybe some other plugin user found the same issue. Maybe the plugin author can include the referred "string" in the next plugin release, even when it's easy to add that string into the app config file, like we do.
That's all! Maybe this can help to someone with the same problem!
P.S. Maybe this is not a real "issue" to be placed here in this page... if the moderator or plugin autor consider that must be removed, there is not a problem here. Feel free to move or just remove this issue if you consider that.
This solved my crash issue as well on iOS 15 (I've had a very long hiatus from iOS development).
I added this to config.xml:
<edit-config file="*-Info.plist" target="NSBluetoothAlwaysUsageDescription" mode="merge">
<string>The app needs access to Bluetooth.</string>
</edit-config>
Not sure the description should be this, but at least it works now.
I've let Peter know about the change.