ios - Application settings does not contain location service -
i have application requires location access. if location service under settings->privacy in on , installed application location service available under app settings app listed under location services list. when location service under settings->privacy off , installed app, show alert turn on location service in settings->privacy app not listed under location services list, in app settings location service not available turn on/off. please let me know, if there way location service in app settings or bug apple itself.
thanks in advance.
after many times of reading question, got you're trying say. did following:
- turned off location services in settings.
result: of course list of apps uses location services became hidden.
- installed project uses location services.
result: popup - "turn on location services allow "app_name" determine location". has 2 buttons: settings , cancel. clicked settings button.
- after being redirected settings step 2, turned on location services.
result: settings listed again apps use location services. including newly installed project. can turn on location services in app settings, or restart app produce pop needs me allow access location.
so, i'm guessing need add these keys info.plist.
nslocationalwaysusagedescription - value: "app_name" needs location"
and
nslocationwheninuseusagedescription - value: "app_name" needs location"
i've written quite 'nasty' tutorial mkmapview implementing programmatically. includes info.plist mentioned , catching current location services state.
Comments
Post a Comment