Skip to content

Commit

Permalink
Update initialization_helper.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
thilojaeggi authored Oct 2, 2023
1 parent c13ca6c commit 4a1ef54
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions lib/helpers/initialization_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ class InitializationHelper {
testIdentifiers: ["E1029A70-CBAC-4A16-9CDC-B0C17B220B56"],
),
);
ConsentInformation.instance.requestConsentInfoUpdate(params, () async {
ConsentInformation.instance
.requestConsentInfoUpdate(ConsentRequestParameters(), () async {
if (await ConsentInformation.instance.isConsentFormAvailable()) {
await _loadConsentForm();
} else {
Expand Down Expand Up @@ -65,14 +66,8 @@ class InitializationHelper {
Future<bool> changePrivacyPreferences() async {
final completer = Completer<bool>();

var params = ConsentRequestParameters(
consentDebugSettings: ConsentDebugSettings(
debugGeography: DebugGeography.debugGeographyNotEea,
testIdentifiers: ["E1029A70-CBAC-4A16-9CDC-B0C17B220B56"],
),
);

ConsentInformation.instance.requestConsentInfoUpdate(params, () async {
ConsentInformation.instance
.requestConsentInfoUpdate(ConsentRequestParameters(), () async {
if (await ConsentInformation.instance.isConsentFormAvailable()) {
ConsentForm.loadConsentForm((consentForm) {
consentForm.show((formError) async {
Expand Down

0 comments on commit 4a1ef54

Please sign in to comment.