AppLovin / AppLovin-MAX-SDK-Android

Other
233 stars 104 forks source link

Consent flow shows up on every app open #627

Closed kasem-sm closed 8 months ago

kasem-sm commented 9 months ago

MAX SDK Version

Latest

Device/Platform Info

Android 14, Google Pixel

Current Behavior

The UMP consent flow shows up on every app launch

Expected Behavior

Should only show if user has not accepted/consent

How to Reproduce


        val cmpService = AppLovinSdk.getInstance(this).cmpService
        cmpService.showCmpForExistingUser(this) { error ->
            if (error == null) {
                Timber.i("CMP alert was shown successfully")
                lifecycleScope.launch {
                    adsHandler.load(this@MainActivity, AdData.GenerateImageAd)
                }
            } else {
                Timber.i("Failed to show CMP alert: $error")
            }
        }
    }```

### Additional Info

I am using a VPN to emulate EU regions