javascript - 如何在本机反应中获得 IDFA 和 ADID?
问题描述
我想在 Android 上获取 ADID,在 IOS 上获取 IDFA,如何在 react native 上执行此操作?我使用这个名为react-native-idfa的库,但该库总是在 IDFA 上说未定义
解决方案
我们遇到了同样的问题。确保你的 iAd.framework 链接到 Xcode -> “Build Phases”:
他们确实在他们的 github 上提到了这一点https://github.com/FreebirdRides/react-native-idfa#podfile
在“Link Binary With Libraries”下添加 AdSupport.framework:
如果您想使用我们的,我们分叉了 react-native-idfa:
https://github.com/FreebirdRides/react-native-idfa
这个提交特别是:
https://github.com/FreebirdRides/react-native-idfa/commit/9c6992a53dd109bed41e8c8300906a71e6068043
推荐阅读
- node.js - 无法运行我的 nodejs 和 typescript 项目,并且我得到“.ts 作为未知文件扩展名”
- c# - C# - 可以将字符串存储在大对象堆 (LOH) 中吗?
- python - scipy.stats.linregress 是确定性的吗?
- python - 如何始终打印出元组中的最后一项。(Python)
- python - 在 Python 中更改 Windows 10 背景纯色
- gensim - 您能否使用 TaggedLineDocument 为文档提供额外的标签?
- json - 如何让ajv-cli考虑格式
- c - 用于查找最大可除数的 c 程序不起作用
- java - 架构的 Java 进程构建器问题
- sql - SQL 中针对 MIN、MAX 和 AVG 的分析查询