Skip to content

Commit ad5e7f2

Browse files
committed
Migration guide - location sharing must be enabled
1 parent 68f9b7f commit ad5e7f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MIGRATION_GUIDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,11 +694,11 @@ OneSignal.Notifications.addClickListener(myListener)
694694

695695
## Location Namespace
696696

697-
The Location namespace is accessible via `OneSignal.Location` and provide access to location-scoped functionality.
697+
The Location namespace is accessible via `OneSignal.Location` and provide access to location-scoped functionality. As of `v5.1.0`, location sharing must be enabled by setting `isShared` to `true`.
698698

699699
| **Swift** | **Objective-C** | **Description** |
700700
| ---------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
701-
| `let isShared: Bool = OneSignal.Location.isShared`<br><br>`OneSignal.Location.isShared = true` | `BOOL isShared = [OneSignal.Location isShared]`<br><br>`[OneSignal.Location setShared:true]` | *Whether location is currently shared with OneSignal.* |
701+
| `let isShared: Bool = OneSignal.Location.isShared`<br><br>`OneSignal.Location.isShared = true` | `BOOL isShared = [OneSignal.Location isShared]`<br><br>`[OneSignal.Location setShared:true]` | *Whether location is currently shared with OneSignal. As of `v5.1.0`, this is false by default, and you must set to `true` to enable sharing.* |
702702
| `OneSignal.Location.requestPermission()` | `[OneSignal.Location requestPermission]` | *Use this method to manually prompt the user for location permissions. This allows for geotagging so you send notifications to users based on location.* |
703703

704704

0 commit comments

Comments
 (0)