Hello,
When using the map and trying to get my current location on iOS I get the error below returned:
0
“Pending user authorization” — Occurs when the device is prompting the user for authorization to use location services.
The problem is I am not getting anything on the screen to prompt me to allow the GPS. Why is this? I am using 9.2 or something like that. Below is my build settings file.
-- -- For more information on build.settings see the Corona SDK Build Guide at: -- http://docs.coronalabs.com/guide/distribution/buildSettings/index.html -- settings = { plugins = { ['plugin.toast'] = {publisherId = 'com.spiralcodestudio'}, ["plugin.openudid"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true }, }, }, orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "portrait", supported = { "portrait", } }, excludeFiles = { -- Include only the necessary icon files on each platform iphone = { "Icon-\*dpi.png", }, android = { "Icon.png", "Icon-Small-\*.png", "Icon\*@2x.png", }, }, -- -- iOS Section -- iphone = { plist = { NSLocationWhenInUseUsageDescription = "GPS location is needed to know where the user is making their credit card location which they have authorized.", UIRequiredDeviceCapabilities = {"location-services", "gps", "magnetometer" }, NSAppTransportSecurity = { NSExceptionDomains = { ["xxxxxxxx.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, }, }, UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-167.png", "Icon-60.png", "Icon-60@2x.png", "Icon-60@3x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-Small@3x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", }, --[[-- iOS app URL schemes: CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXXXXXXX", -- replace XXXXXXXXX with your Facebook appId } } } --]] } }, -- -- Android Section -- android = { usesPermissions = { "android.permission.INTERNET", "android.permission.READ\_PHONE\_STATE", -- Permission to retrieve current location from the GPS "android.permission.ACCESS\_FINE\_LOCATION", -- Permission to retrieve current location from WiFi or cellular service "android.permission.ACCESS\_COARSE\_LOCATION", }, }, }
