delba / Permission

A unified API to ask for permissions on iOS
MIT License
2.9k stars 320 forks source link

Saving Bluetooth permission status in UserDefaults leads to crash #148

Closed alinradut closed 3 years ago

alinradut commented 4 years ago

Going through the regular Bluetooth permission workflow leads to the following crash:

[User Defaults] Attempt to set a non-property-list object Authorized as an NSUserDefaults/CFPreferences value for key permission.statusBluetooth
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Attempt to insert non-property list object Authorized for key permission.statusBluetooth'
kaiserabliz commented 3 years ago

Check #149