From cddf36707be71f3934c48a4239141d7747f86a11 Mon Sep 17 00:00:00 2001 From: Jenna Antilla <46546946+jennantilla@users.noreply.github.com> Date: Wed, 2 Oct 2024 12:05:57 -0700 Subject: [PATCH] Update Migration Guide - Correct getOptedInAsync method description with correct method name and expected results --- MIGRATION_GUIDE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MIGRATION_GUIDE.md b/MIGRATION_GUIDE.md index d11e6daa..3df54d73 100644 --- a/MIGRATION_GUIDE.md +++ b/MIGRATION_GUIDE.md @@ -250,7 +250,7 @@ The Push Subscription namespace is accessible via `OneSignal.User.pushSubscripti | `OneSignal.User.pushSubscription.getOptedIn()` | _**DEPRECATED**
use `getOptedInAsync`_ | | `await OneSignal.User.pushSubscription.getIdAsync()` | _The readonly push subscription ID._ | | `await OneSignal.User.pushSubscription.getTokenAsync()` | _The readonly push token._ | -| `await OneSignal.User.pushSubscription.getOptedInAsync()` | _Gets a boolean value indicating whether the current user is opted in to push notifications. This returns `true` when the app has notifications permission and `optedOut` is called. **_Note:_** Does not take into account the existence of the subscription ID and push token. This boolean may return `true` but push notifications may still not be received by the user._ | +| `await OneSignal.User.pushSubscription.getOptedInAsync()` | _Gets a boolean value indicating whether the current user is opted in to push notifications. This returns `true` when the app has notifications permission and `optOut()` is **not** called. **_Note:_** Does not take into account the existence of the subscription ID and push token. This boolean may return `true` but push notifications may still not be received by the user._ | | `OneSignal.User.pushSubscription.optIn()` | _Call this method to receive push notifications on the device or to resume receiving of push notifications after calling `optOut`. If needed, this method will prompt the user for push notifications permission._ | | `OneSignal.User.pushSubscription.optOut()` | _If at any point you want the user to stop receiving push notifications on the current device (regardless of system-level permission status), you can call this method to opt out._ | | `OneSignal.User.pushSubscription.addEventListener('change', listener: (event) => void)`

**_See below for usage_** | _Adds the listener to run when the push subscription changes._ |