OneSignal has a OneSignal.disablePush(boolean) method to toggle push notifications globally in app. How can I read the current value of it so that I can sync it with the app state?
In other words, I'm looking for a method like OneSignal.isPushDisabled() : boolean.
The OneSignal React Native SDK includes the method
getDeviceStatewhich includes theisPushDisabledkey in the response.