Apparently in iOS 8 SDK, requestAlwaysAuthorization (for background location) or requestWhenInUseAuthorization (location only when foreground) call on CLLocationManager is needed before starting location updates.
There also needs to be NSLocationAlwaysUsageDescription or NSLocationWhenInUseUsageDescription key in Info.plist with a message to be displayed in the prompt.
But if I build with iOS 7 sdk, do I need to make these changes for running location services on iOS 8 device? (I know how to run on iOS 8 device with iOS 7 sdk. Hack -I just need to keep the device plugged with xcode 6 also open and then I start xcode 5. It detected iOS 8 device on xcode 5.1)
Aucun commentaire:
Enregistrer un commentaire