更新到 Android 11 后 Admob 中出现严格的安全 Cookie 策略错误 [英] Strict Secure Cookie policy error in Admob after updating to Android 11

查看:24
本文介绍了更新到 Android 11 后 Admob 中出现严格的安全 Cookie 策略错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

After updating my app to compile with api level 30 (Android R, 11), I can't see admob test ads, and I'm receiving this error in the log:

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'm using the last admob version, and I dont have "org.apache.http.legacy" references in gradle or manifest.

解决方案

This might come from the webview cookie_manager.cc.

Also this: https://www.chromestatus.com/feature/5633521622188032

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

It might be temporarily broken, unless they'd set the cookie as expected.

这篇关于更新到 Android 11 后 Admob 中出现严格的安全 Cookie 策略错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆