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:
/// - Parameters:
/// - enable: Boolean to enable (true) or disable (false) communication
setOptOut(enable: enable)
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.
Usage Example
To enable the opt-out feature:
let ezpush = EZPush()
EZPush.setOptOut(true)
To disable the opt-out feature and resume communication:
let ezpush = EZPush()
EZPush.setOptOut(false)