Braze JavaScript SDK
    Preparing search index...

    Function setUserPushNotificationSubscriptionType

    • Sets whether the user should be sent push campaigns.

      Parameters

      • notificationSubscriptionType: NotificationSubscriptionType

        Notification setting (explicitly opted-in, subscribed, or unsubscribed). Use the NotificationSubscriptionTypes enum.

      Returns Promise<boolean | undefined>

      Resolves to a boolean that indicates whether the update was successfully enqueued. Resolves to undefined if the SDK is not initialized.