简体   繁体   English

我可以使用Cordova访问ios IDFA吗?

[英]Can I access ios IDFA using Cordova?

Cordova allows access to device UUID using: Cordova允许使用以下方式访问设备UUID:

var deviceID = device.uuid;

I am interested in accessing the advertisingIdentifier on the iOS platform. 我有兴趣访问iOS平台上的advertisingIdentifier。

Is the Cordova method above sufficient for this? 上面的Cordova方法是否足够? If not am I able to insert other code into the framework to accomplish this task (what might that look like)? 如果不是我能够在框架中插入其他代码来完成此任务(可能是什么样的)?

Thank you! 谢谢!

Cordova doesn't ship with that specific functionality. Cordova没有附带该特定功能。 You will need a cordova plugin like this: https://github.com/aquto/cordova-plugin-AppleAdvertising (Apple) I couldn't, however, make the above plugin work for myself. 你将需要一个这样的cordova插件: https//github.com/aquto/cordova-plugin-AppleAdvertising (Apple)但是,我不能让上面的插件为我自己工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM