getGCMConsentStatus

public abstract GCMStatus getGCMConsentStatus()

This method shows the current status of GCMv2 (Google Consent Mode V2).

Before calling up this method, it's best to make sure that the user has already given his consent and that it's up to date, and that the CMP doesn't need to be redisplayed.

Otherwise :

  • either the saved value of the old consent will be returned

  • or the default values of your FirebaseAnalytics AndroidManifest configuration will be returned

Since

5.3.0

Return

GCMv2 status of user consent GCMStatus

See also