Skip to content

Option to Opt-Out

The SDK provides an option to opt out, which blocks all network communication to our backend servers. This feature ensures that no data is sent or received from our servers, enhancing user privacy.

To enable or disable the opt-out option, use the following function:

EZPush.optOut(enable)

enable (Boolean): Pass true to enable the opt-out (blocking communication) or false to disable the opt-out (allowing communication). When opt-out is enabled, all interactions with our backend are halted, preventing any data from being transmitted. This can be useful in scenarios where you need to comply with specific privacy regulations or user preferences.

Usage Example

To enable the opt-out feature:

EZPush.optOut(true)

To disable the opt-out feature and resume communication:

EZPush.optOut(false)

By integrating this function into your application, you can provide users with greater control over their data privacy, adhering to best practices in data management and compliance with privacy laws.