NSInternalInconsistencyException: 'Invalid parameter not satisfying: !stayUp || CLClientIsBackgroundable(internal->fClient)'
I've managed to solve this by doing these two things:
- added
UIBackgroundModes
'location' to Info.plist - added
NSLocationAlwaysUsageDescription
to Info.plist
As of iOS 11, keys are named:
NSLocationAlwaysAndWhenInUseUsageDescription
andNSLocationWhenInUseUsageDescription
Just select your app scheme and go to Capabilities as per my picture below everything should work fine.
I had similar issue. Below are steps to fix this crash issue (using Xcode 11.3).
- Add
Privacy - Location usage description
inInfo.plist
of your project.
- Add
Background Modes
asCapability
in your Project Target.
- Select
Location Update
option