The Core Location talk on WWDC emphasized that it's good to ask for in-use first. It also said that if i have been granted in-use, i can ask for always and get a prompt in the app again.
This is good, but i would like to be able to inform our users as clearly as possible, i.e. if no prompt can be shown, i'd like to direct them to settings whenever they try to turn on a feature that requires "always".
However, it's seems that there is no way to check whether the "always" question has been asked before, since there is only "NotDetermined". If i have "WhenInUse", i can't know if it's because i asked for always but didn't get it.
It would have been great if there was a method like "canAskForAlways" or similar.
Is there something i can do or do i have to store some variable in NSUserDefaults so that i know that i have asked for always? This way i can know that i have to show a popup directing the user to settings rather than ask for always but no system dialog pops up.
Pointers appreciated.
This is good, but i would like to be able to inform our users as clearly as possible, i.e. if no prompt can be shown, i'd like to direct them to settings whenever they try to turn on a feature that requires "always".
However, it's seems that there is no way to check whether the "always" question has been asked before, since there is only "NotDetermined". If i have "WhenInUse", i can't know if it's because i asked for always but didn't get it.
It would have been great if there was a method like "canAskForAlways" or similar.
Is there something i can do or do i have to store some variable in NSUserDefaults so that i know that i have asked for always? This way i can know that i have to show a popup directing the user to settings rather than ask for always but no system dialog pops up.
Pointers appreciated.