diff --git a/src/shared/managers/CustomLinkManager.ts b/src/shared/managers/CustomLinkManager.ts index 245fde691..900e0e14f 100644 --- a/src/shared/managers/CustomLinkManager.ts +++ b/src/shared/managers/CustomLinkManager.ts @@ -146,9 +146,7 @@ export class CustomLinkManager { } private async handleClick(element: HTMLElement): Promise { - const isPushEnabled = - await OneSignal.context.subscriptionManager.isPushNotificationsEnabled(); - if (isPushEnabled) { + if (OneSignal.User.PushSubscription.optedIn) { await OneSignal.User.PushSubscription.optOut(); await this.setTextFromPushStatus(element); } else {