Skip to content

Commit 94cd03e

Browse files
authored
Update README.md
1 parent 800d67f commit 94cd03e

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -725,17 +725,6 @@ request(PERMISSIONS.IOS.LOCATION_ALWAYS).then((result) => {
725725
});
726726
```
727727

728-
##### 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:
734-
735-
![alt text](https://camo.githubusercontent.com/e8357168f4c8e754adfd940fc065520de838a21a80001839d5e740c18893ec67/68747470733a2f2f636d732e717a2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031392f30392f696f732d31332d6c6f636174696f6e732d7465736c612d31393230783938322e6a70673f7175616c6974793d37352673747269703d616c6c26773d3132303026683d3930302663726f703d31 "Screenshot")
736-
737-
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.
738-
739728
---
740729

741730
#### checkNotifications
@@ -930,3 +919,13 @@ requestLocationAccuracy({purposeKey: 'YOUR-PURPOSE-KEY'})
930919
.then((accuracy) => console.log(`Location accuracy is: ${accuracy}`))
931920
.catch(() => console.warn('Cannot request location accuracy'));
932921
```
922+
923+
### About iOS LOCATION_ALWAYS permission
924+
925+
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:
928+
929+
![alt text](https://camo.githubusercontent.com/e8357168f4c8e754adfd940fc065520de838a21a80001839d5e740c18893ec67/68747470733a2f2f636d732e717a2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031392f30392f696f732d31332d6c6f636174696f6e732d7465736c612d31393230783938322e6a70673f7175616c6974793d37352673747269703d616c6c26773d3132303026683d3930302663726f703d31 "Screenshot")
930+
931+
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

Comments
 (0)