Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resolved http and Site Behavior: Navigation error in android app?

Recently I updated android 9 to android 10 but unfortunately, the app sometimes crashes and gives this error.

com.fgapps.maker E/chromium: [ERROR:cookie_manager.cc(137)] Strict Secure Cookie policy does not 
allow setting a secure cookie for http://googleads.g.doubleclick.net/ for apps targeting >= R. 
Please either use the 'https:' scheme for this URL or omit the 'Secure' directive in the cookie value.

I tried using this in manifiest

   <application
        android:hardwareAccelerated="false"
        android:networkSecurityConfig="@xml/network_security_config"
        android:usesCleartextTraffic="true"
        ....>

    <uses-library
        android:name="org.apache.http.legacy"
        android:required="false" />

I also added build-gradle (app)

android {
    useLibrary 'org.apache.http.legacy'
    ...}

and also AdMob rejects my app due to Site Behavior: Navigation violation even I checked all links working properly, so How to resolve this issue. thanks

like image 255
Attaullah Avatar asked Nov 06 '22 06:11

Attaullah


2 Answers

Three of my friends resolved errors by following these steps.

  1. Just request to google this is an error sometimes google fixes this issue without changes in the app.

  2. If not fix from step-1 then it maybe needs to remove ads from MainActivity, especially Interstitial ad.

  3. and also check the app for unlink remote resources.

like image 120
Attaullah Avatar answered Nov 14 '22 22:11

Attaullah


I had same issue. my banner ads cover or overlap the contents of the app. After fixing the banner ads published my app again and issue resolved. So in my opinion check your banner ads and also check any direct link that leads to another app or webpage.

like image 23
Somen Tushir Avatar answered Nov 14 '22 22:11

Somen Tushir