Just a quick question here.
I am displaying the the alert for the user to allow the app to access location data, and I have this triggered from a switch.
When the user turns the switch on, the alert will be displayed.
If the user clicks disallow, is there a time restriction that Apple has before you can show that alert again?
Thanks in advance!
Once the user chooses not to give your app permission to access their location data, the user will not be able to grant your app that permission from within your app. Instead, the user must enter the Settings app and grant the permission from there. This is to prevent the app from bombarding the user with requests to use location data.
Related
I have an iOS app on the app store that can:
show the user location on a map when the user clicks on a GPS button
record a tracking of the user location when the user clicks on a record button
That app passed validation in the past. I recently made an update that changes nothing to the location stuff, and that has been refused because of the message displayed when requesting the location permission to show the user location on a map (so, when the user clicks on the GPS button).
The message was:
MyAppName needs to access your location to show it on the map.
Seemed pretty clear to me, but reading the guidelines I saw that we should not display the app name. So I updated it to:
Your current location will be displayed on the map.
Which is nearly the same as the message of the guidelines. Rejected again. When the user clicks on the GPS button, the app does nothing more than showing the location on the map.
When the user clicks on the record button, a different message is displayed:
Your current location will be used to record a tracking. The setting must be set to "Always Allow" in order to record the tracking even when the app is in the background.
I explained all of that in an answer to the app rejection message and I'm waiting Apple's response. In the mean time, in order to avoid losing even more time, I'd like to know if someone ran into a similar problem, and what message did you display to pass validation?
Sooooo in the end, they validated my app, after a new message explaining in details the two different use cases (leading to the two different permission requests message).
We are developing an app that share user location on the map when they login and others can tap on their profile pic on map and start chatting with them .
Apple rejected the app with following reply :
"17.1 - Apps cannot transmit data about a user without obtaining the user's prior permission and providing the user with access to information about how and where the data will be used.
Upon further review, we found that your app enables the display of nearby users’ locations on a map but only prompts users on sign up or sign in for permission to show their location. If the user has signed in and previously agreed, then they are not prompted again until they log out. This is not appropriate for the App Store.
Specifically, it is not appropriate to display the user's location automatically without the option to decline if they have already signed in to access your app." We already tried to add multiple popup/confirm boxes for user permissions. what should be done to take care of this privacy issue ?
Should we add a button to manually checkin , everytime they want to update thier location ? this will defeat the purpose though if they have to click a button to update location to show where they are .
Or
Should we ask for permission to Show location each time App is opened since apple's objection is that it don't ask for permission again untill user is logged out and log in back ?
This is a speculative answer, since Apple has somewhat fuzzy replies, but this is my view:
Specifically, it is not appropriate to display the user's location automatically without the option to decline if they have already signed in to access your app."
You could solve it by:
* Sending a push notification when the user's location is being used (this could be annoying depending on app usage of location)
* Showing some info in a very visible place in the app, e.g. in the lateral menu, along with the option to reject to share your location (or otherwise, tell the user there that they can do so by logging out)
There must be other possible solutions, since the reviewer is a human being and the guideline broad and unspecific enough... But I think any of these options would work.
My app has different screen for allow location. So I don't want to ask location permission alert. Without asking alert Is there any way to allow location?
Apps that do not notify and obtain user consent before collecting, transmitting, or using location data will be rejected
https://developer.apple.com/app-store/review/guidelines/#location
I'm requesting know the user location (in an iOS App), but if he Deny it, I'm redirecting to other page, but this preference is stored in some place and the app is not requesting any more his location.
Exist a way to show again the popup requesting know the location again?
No, you only get one chance to ask for the users location.
Once that is done the user has to toggle it in the phone settings under "Location Services".
My iOS app wants to display the users current location. Nothing special - but to do so, the first time the app is ran (or more to the point, the first time an MKViewMap in the app is displayed, I guess...) .. the user is asked for permission (which is awesome).
eg.
Now, if the user accidentally says DON'T ALLOW or decides to (later on) give permission ... is there technically a way we can reset their previous decision and when the app is restarted, ask them again automatically when the MKViewMap is next rendered again?
The user can enable or disable that option in the setting of the iphone. To do this, user have to select the Privacy option in the Setting Menu, and then select the Location Services option and than search the desired app to whom user want to enable or disable the permission and perform desired function by switching the toggle button on or off.
As it was a Private API provided from Apple the alert cannot be shown up again. Alternatively, we can check manually and show an alert like this.
The following can be read in the Apple docs:
"...it is recommended that you always call the locationServicesEnabled class method of CLLocationManager before attempting to start either the standard or significant-change location services. If it returns NO and you attempt to start location services anyway, the system prompts the user to confirm whether location services should be re-enabled. Given that location services are very likely to be disabled on purpose, the user might not welcome this prompt."
If I understand it right the alert will pop up everytime you try to get the users location, but it's not recommended to do so.
Link to full post:
https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/LocationAwarenessPG/CoreLocation/CoreLocation.html#//apple_ref/doc/uid/TP40009497-CH2-SW1
No you cannot do so. Rather than this, you can just check the latitude and longitude value and show alert to the user that enable the service from settings.