OneSignal writes:
" For EU GDPR compliance in particular, we recommend displaying a dialog to users and having them provide unambiguous consent for data to be shared with OneSignal (and any other services you send personal data to).
To simplify this process, we’ve introduced an optional method to each of our SDKs to delay initialization and prevent any data from being sent to OneSignal until the user has provided consent.
Your application should call this method before initialization of the SDK. If you pass in true
, your application will need to call provideConsent(true)
before the OneSignal SDK gets fully initialized."
Can someone tell me which blocks to use?
When opening the app for the first time, the user will receive information that OneSignal is being used. If he does not agree, the app closes. (only “agree” is possible, there is no “I decline”). But I have to make sure that as long as the Notifier is displayed and the user has not accepted, OneSignal does not collect any data.