Android Question FirebaseAdmob User Consent cannot show

Discussion in 'Android Questions' started by dragonguy, May 29, 2019.

  1. dragonguy

    dragonguy Active Member Licensed User

    when i run the app, didn't show user consent,and log show error message:
    Code:
    Error getting consent state: java.lang.Exception: Could not parse Event FE preflight response.
    My code below:
    Code:
    Sub Process_Globals
        
    Dim consent As ConsentManager
        
    Public adbannerKey1 As String="ca-app-pub-3940256099942544/6300978111" ' test ad
    End Sub
    Code:
    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?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    dragonguy likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice