Android Question FirebaseAdmob User Consent cannot show

dragonguy

Active Member
Licensed User
Longtime User
when i run the app, didn't show user consent,and log show error message:
B4X:
Error getting consent state: java.lang.Exception: Could not parse Event FE preflight response.

My code below:
B4X:
Sub Process_Globals
    Dim consent As ConsentManager
    Public adbannerKey1 As String="ca-app-pub-3940256099942544/6300978111" ' test ad
End Sub

B4X:
consent.Initialize("consent")
    #if DEBUG
    consent.AddTestDevice("xxxx")
    consent.SetDebugGeography(True)
    #End If
    consent.RequestInfoUpdate(Array("pub-xxxx"))
    Wait For consent_InfoUpdated (Success As Boolean)
    If Success = False Then
        Log($"Error getting consent state: ${LastException}"$)
    End If
    Log($"Consent state: ${consent.ConsentState}"$)
    Log("EU: " & consent.IsRequestLocationInEeaOrUnknown)
    Do While IsPaused(Main)
        Sleep(100)
    Loop
    CallSubDelayed(Main, "ConsentStateAvailable")

how to solve is problem?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…