showGDPRConsentUI
method in the app. It triggers our system GDPRConsent
Event and shows the Consent Form Rich Media page.Pushwoosh.setCommunicationEnabled()
is a binary method to enable or disable communication channels. The value true triggers a postEvent, sending a registerDevice
request to Pushwoosh servers. The value false does the opposite. The method returns a promise.Pushwoosh.isCommunicationEnabled()
gets the current status of communication availability. The method returns a promise.Pushwoosh.removeAllDeviceData()
method unregisters the device, deletes all device's Tag values, and blocks all further requests to Pushwoosh. The method returns a promise.setCommunicationEnabled
method, simply use the following event listener:onChangeCommunicationEnabled
tracks the changes of the communication availability. The second argument in the callback is the new availability state. Please see the example below.device_type
values for different platforms:
1 — iOS; 3 — Android; 5 — Windows Phone; 7 — OS X; 8 — Windows 8; 9 — Amazon; 10 — Safari; 11 — Chrome; 12 — Firefox.