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
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`.
|`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.*|
702
702
|`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.*|
0 commit comments