cmackay / google-analytics-plugin

Cordova Google Analytics Plugin for Android & iOS
Apache License 2.0
89 stars 43 forks source link

AllowIDFACollection callback never called in iOS #70

Closed S-unya closed 7 years ago

S-unya commented 7 years ago

Testing this on Android and iOS, I call: analytics.enableAdvertisingIdCollection(() => { alert('enableAdvertisingIdCollection success');// eslint-disable-line no-console }, () => { alert('enableAdvertisingIdCollection failure');// eslint-disable-line no-console }); Android calls the success function reliably, but iOS never does.

Checking on the GoogleAnalytics dashboard, I see that Android is logging events but iOS is still considered to be off and they are suggesting setting allowIDFACollecttion=YESon appropriate views.

This suggests that this is never set in the iOS implementation

cmackay commented 7 years ago

It is not set in the implementation on iOS due to multiple issues related to IDFA and iOS. For more info refer to #60 and there are other closed IDFA related issues. If you want this behavior I would recommend forking and applying it to your branch.

cmackay commented 7 years ago

https://github.com/cmackay/google-analytics-plugin/search?q=idfa&type=Issues&utf8=%E2%9C%93

S-unya commented 7 years ago

Understood. Thanks.