I am using location services in my app. Initially the app asks the user to allow finding the current location. If the user says "Don't Allow", can I show one more alert to confirm that choice? Then, if the user says "Allow" in that second dialogue, can the app get the current location?
No you can't, it is managed by the the system.
You can/should check if the user allowing you app to get the current location.
Because you can change this in the settings app
Check can be done like this:
if (![CLLocationManager locationServicesEnabled]) {
// location can not be retrieved.
}
i think..................
its a not possible beacuse its a default setting of iPhone ....
if u get answer please reply ....in this page......
but u change the setting of iphone, go to setting icon , go to general icon , go to current location and on this button...
sry for poor english
The question is who is showing the second message.
If it's CoreLocation that is showing the message than the last answer is the one that counts - so if it was "allow" then you can.
However - if after the "Disallow" you show your own custom message - the answer there has no affect.
It must come from CoreLocation
Related
I am working on a Task which need to Access Users Location on Every 5 Minutes even when the App is Killes or Closed.
I have Already Achived it. But google play console Restricted me with the below message.
Prominent disclosure not found
Your app must display a prominent disclosure through a pop-up alert before your app’s location runtime permission. Based on our review, a prominent disclosure did not appear before the runtime permission.
Please add a prominent disclosure before the runtime permission.
• Include at least the following sentence, adapted to include all the relevant features requesting access to location in the background in the app that are readily visible to the user: “This app collects location data to enable ["feature"], ["feature"], & ["feature"] even when the app is closed or not in use.” If you extend permitted usage to ads, please also include: “This data is also used to provide ads/support advertising/support ads.”
• Include any other details necessary to make it clear to the user how and why you are using location in the background. While additional content is permitted, it should not cause the required content to not be immediately visible.
I have also Added Pop Up, But i am Confused about, Should i Show that Pop Up Every Time On Accessing Location Or Only Once when App Being Installed,
Any help or Lead will be Appreaciated , (Respect)
Rajat.
After doing some Resaerch work on my Question, I have found a Answer for this Question.
We dont need to to show pop-up everytime on accessing location from background.
This popup will shown only once in a app maybe in HomeScreen after app install first time.
Proof of Answer
In genrealy, you pop-up dialog should appear before your app’s location runtime permission including
Include at least the following sentence, adapted to include all the
relevant features requesting access to location in the background in
the app that are readily visible to the user: “This app collects
location data to enable ["feature"], ["feature"], & ["feature"] even
when the app is closed or not in use.” Include any other details
necessary to make it clear to the user how and why you are using
location in the background. While additional content is permitted, it
should not cause the required content to not be immediately visible.
Include the following sentence, if you extend permitted usage to ads:
“This data is also used to provide ads.”
I want to be able to create my own view to allow location services from my iOS app. I've read here that it's possible to customise the description of the default iOS location services alert, but what I want is making my own view.
Is this possible?
Thanks!
No, it is not possible. All you can/should do is popping it at the right time. You should make sure that user is informed that permission is really needed, according to several researches (yes, citation needed :) ).
EDIT: it pops up when you first call start monitoring/updating location method from your CLLocationManager instance.
Since iOS8, you should call requestWhenInUseAuthorization or requestAlwaysAuthorization for it to pop up.
Here you can find some very good ideas about it.
Since you can not change the Apple Services Authorisations;
I would recommend you to create your custom view with "allow" & "dont allow" buttons. And than on "allow" pressed request apple permission witch will prompt the iOS or mac OS alert.
Though it seems not user-friendly. Apple users are used to this. Nobody will mind, and you will still show your own design. A lot of famous apps do that.
I'm walking in circles trying to create a new app in Apple's Itunes Connect. Here are the steps I'm doing:
When I log in to Itunes Connect I'm seeing a screen asking me to "Review the iOS Developer Program License Agreement."
I click continue and then I'm presented with a "Manage Your Apps" screen.
I click Add New App and it sends me to... the Agreement Update again:
So I click on Members Center this time and it goes here:
Clicking on Itunes Connect sends me back to... yes, the Agreement Update once more.
How do I solve this issue? Where is the secret door to adding a new app?
I got stuck here too - here's how it went for me:
Nothing showed up in iTunesConnect's finance/agreement area at first (... even though the links kept sending me there!)
I eventually found something to view/accept at the top of the general Apple Member Center home page.
After step 2, something new finally showed up in iTunesConnect's finance/agreement area that I could accept
After above steps I was able to continue what I was trying to do in iTunesConnect which, in my case, was setting up some new promo codes for my app.
Had the same problem. Tried clearing cookies and cache per above recommendations, nothing. Waited 20m, bingo. Looks like your contract acceptance has to go through some review process, whether manual or automatic, taking a bit of time. I imagine the cookies/cache-clearing having worked was simply you cleared at the right time.
Solution: Open the Link https://itunesconnect.apple.com from Laptop Not Mobile. It will ask you to Accept the Terms and condition. While you open the link from mobile the Accept option will not visible to you. So open the link from Laptop and Accept the terms and condition.
***If you are already registered in TRACES, please login with your registered User Id (PAN), Password & PAN else register as new user*emphasized text****
enter image description here
Had the same problem. Tried clearing cookies and cache per above recommendations, nothing. Waited 20m, bingo. Looks like your contract acceptance has to go through some review process, whether manual or automatic, taking a bit of time. I imagine the cookies/cache-clearing having worked was simply you cleared at the right time.
I am doing this tutorial that would return the GPS coordinates. When I run the application on the iPhone, I am first presented with the UIAlertView asking permission to access my GPS coordinates.
I need to know from where this UIAlertView is thrown? Is it from the OS?
Can we capture this method? When the user clicks on "Allow" or "Don't allow", can I print his choice to the console?
How can I do this programatically? Is there an event for this?
This alert is shown by the OS. The usage of location-based API must be permitted by the user. You can ask the CLLocationManager for the current authorizationStatus and be notified when the status changes (delegate method will be called). Note that the user also can disable location services later in the settings app.
I assume you are using CLLocationManager. Your delegate will get locationManager:didChangeAuthorizationStatus when the applications ability to use the API changes.
Edit:
The first time your application attempts to use the service, the user will be prompted. If the user answers No, your application will not be able to use the service unless they go to Settings->General->Location Services and change the setting for your application.
If you query the API for status and are disallowed, you could put up your own pop-up and instruct the user on how to change the setting for your application.
I know that I can't change the title or the buttons for this alertview, but i've seen numerous apps that changed the message of the alert view
Something like this
Also, I have the Bump API in my app so everytime the popup shows, it says "Bump uses your location to help determine whom you are bumping." and I don't want that displayed when they first use my app.
Does anybody know how I can change the message or change bump's message?
Thanks
To change the message of the alert, use the "purpose" property of CLLocationManager. Check the docs: http://developer.apple.com/library/IOs/#documentation/CoreLocation/Reference/CLLocationManager_Class/CLLocationManager/CLLocationManager.html
I'm not sure how the Bump API works, but if you are just importing all the classes you need, you should be able to edit the location services message. Otherwise, one option would be to request location access before calling the Bump API's to get permission for your app. Once Bump checks, it will already have permission and skip presenting its own.