Skip to content

Commit 2ae5e8a

Browse files
committed
Add missing method to migration guide
* Add `permissionNative()` to migration guide * Add `Location.setShared(bool)` to migration guide
1 parent 62ffee8 commit 2ae5e8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

MIGRATION_GUIDE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ The Notifications namespace is accessible via `OneSignal.Notifications` and prov
275275
| **Flutter** | **Description** |
276276
|---------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|
277277
| `var permission = OneSignal.Notifications.permission` | *Whether this app has push notification permission.* |
278+
| `var permissionNative = await OneSignal.Notifications.permissionNative()` | *(ios only) Returns the enum for the native permission of the device. It will be one of: notDetermined, denied, authorized, provisional (only available in iOS 12), ephemeral (only available in iOS 14)* |
278279
| `var canRequest = await OneSignal.Notifications.canRequest();` | *Whether attempting to request notification permission will show a prompt. Returns `true` if the device has not been prompted for push notification permission already.* |
279280
| `OneSignal.Notifications.clearAll();` | *Removes all OneSignal notifications.*|
280281
| `OneSignal.Notifications.removeNotification(int x);` | *(Android only) Cancels a single OneSignal notification based on its Android notification integer ID. Use instead of Android's [android.app.NotificationManager.cancel], otherwise the notification will be restored when your app is restarted.*|
@@ -342,6 +343,7 @@ The Location namespace is accessible via `OneSignal.Location` and provide access
342343
| **Flutter** | **Description** |
343344
| ----------------------------------------------------------|-------------------------------------------------------------------------------------------|
344345
| `OneSignal.Location.isShared();` | *Whether location is currently shared with OneSignal.*|
346+
| `OneSignal.Location.setShared(true);` | *Enable or disable location sharing.* |
345347
| `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.* |
346348

347349
## InAppMessages Namespace

0 commit comments

Comments
 (0)