Skip to content

Commit 247c67e

Browse files
committed
iOS AdEnable
1 parent e00d8e7 commit 247c67e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ _openinstallFlutterPlugin.init(wakeupHandler);
327327
1、针对广告平台接入,新增配置接口,在调用`init`之前调用。
328328
``` dart
329329
var adConfig = new Map();
330-
adConfig["adEnabled"] = true;//必要,开启广告平台渠道
330+
adConfig["adEnable"] = true;//必要,开启广告平台渠道
331331
adConfig["ASAEnable"] = true;//必要,开启苹果ASA功能
332332
//adConfig["idfaStr"] = "";//可选,通过其它插件获取的idfa字符串一般格式为xxxx-xxxx-xxxx-xxxx
333333
//adConfig["ASADebug"] = true;//可选,ASA测试debug模式,注意:正式环境中请务必关闭(不配置或配置为false)
@@ -352,6 +352,8 @@ adEnable为true时,如果idfaStr有值且不为空,则使用idfaStr的值,
352352
<string>为了您可以精准获取到优质推荐内容,需要您允许使用该权限</string>
353353
```
354354

355+
**注意:**广告平台统计里面,如果出现权限弹窗无法正常弹出的情况,考虑把configIos和init方法放在 App生命周期的“应用进入前台resumed” 的时候调用。
356+
355357
**备注:** 2021年iOS14.5苹果公司将正式启用idfa新隐私政策,详情可参考:[广告平台对接iOS集成指引](https://www.openinstall.io/doc/ad_ios.html)
356358

357359
ASA渠道相关详细文档参考:[ASA渠道使用指南](https://www.openinstall.io/doc/asa.html)

0 commit comments

Comments
 (0)