You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
##### Things to consider when using LOCATION_ALWAYS on iOS
729
-
730
-
If you are requesting `PERMISSIONS.IOS.LOCATION_ALWAYS`, there won't be a `Allow always` Button
731
-
in the Dialog. Only `Allow Once`, `Allow While Using App` and `Don't allow`. This is expected behaviour,
732
-
check the [Apple Developer Docs](https://developer.apple.com/documentation/corelocation/cllocationmanager/1620551-requestalwaysauthorization#3578736).
733
-
When requesting `PERMISSIONS.IOS.LOCATION_ALWAYS` and you choose `Allow While Using App` in the dialog, a Provisional `PERMISSIONS.IOS.LOCATION_ALWAYS` will be granted. The user will see `While Using` in the settings, and later will be prompted that your App is using the location in background. That looks like this:
Subsequently, if you are requesting `PERMISSIONS.IOS.LOCATION_ALWAYS`, there is no need to request `PERMISSIONS.IOS.LOCATION_WHEN_IN_USE`. If the user accepts `PERMISSIONS.IOS.LOCATION_ALWAYS`, `PERMISSIONS.IOS.LOCATION_WHEN_IN_USE` is granted. If the user denies `PERMISSIONS.IOS.LOCATION_ALWAYS`, `PERMISSIONS.IOS.LOCATION_WHEN_IN_USE` is denied too.
If you are requesting `PERMISSIONS.IOS.LOCATION_ALWAYS`, there won't be a `Always Allow` button in the system dialog. Only `Allow Once`, `Allow While Using App` and `Don't Allow`. This is expected behaviour, check the [Apple Developer Docs](https://developer.apple.com/documentation/corelocation/cllocationmanager/1620551-requestalwaysauthorization#3578736).
926
+
927
+
When requesting `PERMISSIONS.IOS.LOCATION_ALWAYS`, if the user choose `Allow While Using App`, a provisional "always" status will be granted. The user will see `While Using` in the settings and later will be informed that your app is using the location in background. That looks like this:
Subsequently, if you are requesting `LOCATION_ALWAYS` permission, there is no need to request `LOCATION_WHEN_IN_USE`. If the user accepts, `LOCATION_WHEN_IN_USE` will be granted too. If the user denies, `LOCATION_WHEN_IN_USE` will be denied too.
0 commit comments