Back to all

Onesignal plugin grant/revoke works differently on Android/iOS

When calling window.median.onesignal.userPrivacyConsent.revoke() on Android the field userContentGiven in the onesignal info is set to false. That field doesn't exist on iOS. It looks like it sets subscription.optedIn to false.

Can we differentiate between the following states in a platform agnostic way:

  • User has never subscribed.
  • User has explicitly denied push notifications.
  • User has allowed push notifications.