/
Flutter iOS How to Activate Location

Flutter iOS How to Activate Location

Permission configuration

The R89SDK optionally requires access to the user’s location for setting it as First-Party Data which increases revenue. But since this is perceived normally as intrusive by some users we let our publishers choose if this is something they want or can do with in their community. If you are already getting the location for other purposes its easier to justify getting it for advertising.

 

In the iOS module, add the NSLocationWhenInUseUsageDescription to the app’s Info.plist with the same or with a different version that best explains why the access is needed in your application.

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> ... <key>NSLocationWhenInUseUsageDescription</key> <string>This app uses your location to display advertisement according to geolocation</string> ... </dict> </plist>

If NSLocationWhenInUseUsageDescription is missing from your Info.plist, the R89SDK won't request location permission.

Related content