Strict Secure Cookie policy error in Admob after updating to Android 11
See original GitHub issueBug report
Native ad cause crash app on simulator Android, API 30
Describe the bug https://stackoverflow.com/questions/64605612/strict-secure-cookie-policy-error-in-admob-after-updating-to-android-11
Steps to reproduce
Steps to reproduce the behavior:
- Config native ad as codelab https://codelabs.developers.google.com/codelabs/admob-inline-ads-in-flutter#7
- Run app on Android simular with API 30
Expected behavior
Firstly app run success but after 3s it was crash and throw the error:
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.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:10
- Comments:21
Top Results From Across the Web
Strict Secure Cookie policy error in AdMob after updating to ...
Please either use the 'https:' scheme for this URL or omit the 'Secure' directive in the cookie value. I'm using the last AdMob...
Read more >ERROR:cookie_manager.cc(137) - Google AdMob Community
I am testing Admob ads, and I keep getting error message, says: E/chromium: [ERROR:cookie_manager.cc(137)] Strict Secure Cookie policy does ...
Read more >Mobile Ads SDK Forum Advisor - Google Groups
[ERROR:cookie_manager.cc(137)] Strict Secure Cookie policy does not allow setting a secure cookie for http://googleads.g.doubleclick.net/ ...
Read more >Behavior changes: Apps targeting Android 13 or higher
If your app does not declare this permission when targeting Android 13 or higher, the advertising ID is automatically removed and replaced with...
Read more >Websites say cookies are blocked - Unblock them | Firefox Help
Check cookie settings · If Standard is selected, this is the default setting and, except for trackers, all cookies are enabled. · If...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Exact same issue here, Hope them to fix the problem asap.
This is the solution
Go to android -> app -> src -> main -> AndroidManifest.xml
Paste this in the AndroidManifest.xml in the application tag
android:usesCleartextTraffic="true"
it should look something like this when you are donethis will make no difference in the emulator if you want the emulator to work as well do the following
go to android -> app -> src -> debug-> AndroidManifest.xml
open the AndroidManifest.xml then you have to add this code below the manifest tag
<application android:usesCleartextTraffic="true"/>
Now the ads will work in the emulator as well.