Reputation: 79
In our Flutter application, we are using AdMob, and we want to display the App Tracking Transparency dialog when the app is opened. However, we do not want to use any additional libraries for this, as the AdMob Flutter documentation provides information on how to do this. App Tracking Transparency
ConsentForm.loadConsentForm((ConsentForm consentForm) async {
var status = await ConsentInformation.instance.getConsentStatus();
if (status == ConsentStatus.required) {
consentForm.show((e) {});
}
}, (formError) {
// ---------------
// | WE ARE HERE |
// ---------------
});
We have implemented all the necessary code, but the dialog is not working, and we are getting an error with error code 7 and the following message:
"Consent form unavailable. Request a consent form using [UMPConsentInformation.sharedInstance requestConsentInfoUpdateWithParameters:completionHandler:]"
How can we resolve this error?
Upvotes: 1
Views: 467