Last month, we wrote a post explaining background location changes in iOS 11 and Android O.
As always, Radar has you covered. Today, we're excited to announce that v1.2 of the Radar iOS SDK and Radar Android SDK are now available to all developers. The updated SDK improves battery efficiency, avoids the blue bar on iOS 11, and avoids background execution limits on Android O.
With iOS 11 and Android O expected to be released in late August or early September, we encourage Radar customers to upgrade in the next few weeks. Upgrading requires no code changes and should only take a few minutes.
If you're using CocoaPods, update your Podfile to depend on v1.2:
pod 'RadarSDK', '~> 1.2.0'
No code changes are required. However, project metadata changes are required.
To prompt for background location permissions on iOS 11, you must add the new NSLocationAlwaysAndWhenInUseUsageDescription
property to your Info.plist
:
<!-- new property -->
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>Your iOS 11 and higher background location usage description goes here.</string>
<!-- old properties -->
<key>NSLocationAlwaysUsageDescription</key>
<string>Your iOS 10 and lower background location usage description goes here.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Your foreground location usage description goes here.</string>
You should keep the NSLocationAlwaysUsageDescription
and NSLocationWhenInUseUsageDescription
properties for backcompatibility.
You're done!
Upgrading on Android is even easier. If you're using Gradle/JCenter, update your build.gradle
to depend on v1.2:
dependencies {
compile 'com.onradar:sdk:1.2.+'
}
No code changes and no project metadata changes are required.
That's it!
Questions? Feedback? We're here to help! Click the button on the bottom right of any Radar page to chat with us, or email us at support@radar.io.
See what Radar’s location and geofencingsolutions can do for your business.