appodeal / react-native-appodeal

Official React Native package that adds Appodeal SDK support to your react-native application.
https://appodeal.com
59 stars 37 forks source link

[QUESTION] Do I need to synchronise after user consent? #72

Closed perrosnk closed 3 years ago

perrosnk commented 3 years ago

If I initialize like this:

Appodeal.synchroniseConsent('Your appKey', (consent: AppodealConsentStatus, regulation: AppodealConsentRegulation) => {
    // Initialise Appodeal SDK here
    Appodeal.initialize('Your appKey', adTypes);
})

and we haven't yet asked the user for consent or it's the first time that the user opens the app. Do I need to re-initialize Appodeal after we call this?

Appodeal.forceShowConsentDialog((consent: AppodealConsentStatus, regulation: AppodealConsentRegulation) => {
    // Handle updated data
})
staskochkin commented 3 years ago

Hello @perrosnk. No, you don't. Appodeal will automatically detect a change of user consent if you call Appodeal.forceShowConsentDialog after Appodeal initialization.