I tried to run my project in Xcode 12 beta 2 with iOS 14 simulator. I observed "Always" menu is not found in Allow Location Access Setting screen.
I have given the followings info.plist
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>TEST APP</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>TEST APP</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>TEST APP</string>
If a friend's location is not available on your iPhone, odds are that the issue is on your friend's phone, not yours. Ask your friend to make sure their phone is connected to WiFi or cellular, they're currently sharing their location, and that location services are enabled.
From the Apple menu , choose System Preferences, click Security & Privacy, then click Privacy. Make sure that Enable Location Services is selected. If the lock in the lower-left corner is closed, click it, then enter your user name and password. Select the checkbox next to Maps.
Open your phone's Settings app. Under "Personal," tap Location access. At the top of the screen, turn Access to my location on or off.
The "Always Allow" option has been removed from the initial location permissions prompt. You can get this option later as a new prompt. Then the question comes, how will we support the location feature if we need it in the background?
Way to achieve this -
Call the method "locationManager.requestAlwaysAuthorization()" before your app can receive location information. If your app needs always permission and you want to receive the prompt for always permission later.
Initially, users can select "While Using the app" or select a new option, "Allow Once"(introduced in iOS 13 itself).
If the user continues to use the app, iOS 13 will now automatically prompt to upgrade location permissions from "While Using the app" to "Always Allow".
You will receive #2 prompt next time after unlocking the device and launching the app with already grated "While Using the app" permission.
Source
This WWDC 2019 video also suggests that this is still possible: https://developer.apple.com/videos/play/wwdc2019/705/
At 6:57 "...you can request when in use authorization first, then, at some later point, when the user interacts with a feature of the app that warrants it, seek always authorization later..."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With