Permissions on iOS

Are there specific permissions (like in Android) that have to be enabled on iOS devices so that you can use the dial feature or launch google maps from openurl?  If so, how do I set them?

The same features that work on the Android but not on the iOS version. 

Hi John,

It’s not really about “enabling” them like Android, but if you need specific control over device hardware on iOS, you can use the “UIRequiredDeviceCapabilities” table as outlined in this guide under “iOS Build Settings”:

http://docs.coronalabs.com/guide/distribution/buildSettings/index.html#ios-build-settings

Brent

Thanks!

In the build… I’ve added this line…

UIRequiredDeviceCapabilities = { "gps","location-services","telephony" },

BUT… it’s still not finding the location when launching googlemaps in a webview.  The same code works on Android and it’s definitely going TO google maps… it just refuses to see location.

In the iOS settings, there is not even the ability to set permissions for the app to give it location info - like there is for other apps.

Is there something else I need to do?  Am I missing something?

Hi John,

Are you using iOS8+? If so, did you include the “NSLocationWhenInUseUsageDescription” flag as noted here?

http://docs.coronalabs.com/api/type/Map/requestLocation.html

Beyond that, I’m not sure what else to suggest. If you open a map via a web view, it’s probably more like you’re needing the location done through Safari, and not natively. But perhaps there are subtleties I’m not aware of.

Take care,

Brent

Hi John,

It’s not really about “enabling” them like Android, but if you need specific control over device hardware on iOS, you can use the “UIRequiredDeviceCapabilities” table as outlined in this guide under “iOS Build Settings”:

http://docs.coronalabs.com/guide/distribution/buildSettings/index.html#ios-build-settings

Brent

Thanks!

In the build… I’ve added this line…

UIRequiredDeviceCapabilities = { "gps","location-services","telephony" },

BUT… it’s still not finding the location when launching googlemaps in a webview.  The same code works on Android and it’s definitely going TO google maps… it just refuses to see location.

In the iOS settings, there is not even the ability to set permissions for the app to give it location info - like there is for other apps.

Is there something else I need to do?  Am I missing something?

Hi John,

Are you using iOS8+? If so, did you include the “NSLocationWhenInUseUsageDescription” flag as noted here?

http://docs.coronalabs.com/api/type/Map/requestLocation.html

Beyond that, I’m not sure what else to suggest. If you open a map via a web view, it’s probably more like you’re needing the location done through Safari, and not natively. But perhaps there are subtleties I’m not aware of.

Take care,

Brent