Rejected by Apple "Your app is using the Advertising Identifier (IDFA)."
See original GitHub issueI am attempting to submit my Cordova app using this plugin, and when I submit I get this warning from Apple:
Your app is using the Advertising Identifier (IDFA). You must either provide details about the IDFA usage or remove it from the app and submit your binary again.
I have not enabled any IDFA-related collection in my app as far as I can tell, although I do use setUserId
. Would that be triggering it or is it purely something about including the Google SDKs?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:9
- Comments:56 (1 by maintainers)
Top Results From Across the Web
Does this app use the Advertising Identifier (IDFA)?
The Advertising Identifier (IDFA) is a unique ID for each iOS device and is the only way to offer targeted ads. Users can...
Read more >Apps Pulling The Advertising Identifier, But Not Showing ...
This weekend, Apple began rejecting mobile applications from the App Store which retrieve the end user's IDFA (Identifier for Advertisers), ...
Read more >Flutter app rejected by Apple due to advertising identifier in ...
Flutter app rejected by Apple due to advertising identifier in app ... access to a user's IDFA, in the following location(s) in your...
Read more >Does this app use the Advertising Identifier (IDFA)?
No — you can go ahead and submit your application. Yes — you have new set of options to be answered. 1. Serve...
Read more >IDFA and how to avoid getting your app rejected by iTunes
The Advertising Identifier (IDFA) is a unique ID for each iOS device that mobile ad networks typically use to serve targeted ads. Users...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For the time being, you can remove libAdIdAccess.a and AdSupport.framework in Xcode in the Linked Frameworks and Libraries section. I’m assuming that means you can remove both of these from the plugin.xml file:
<source-file src="ios/libAdIdAccess.a" framework="true" />
<framework src="AdSupport.framework" />
I just removed them in Xcode, and after I resubmitted Apple had no issues.
I have created a Cordova Hook to do the edits to this plugin. This Cordova Hook (script) removes “AdSupport.framework” and “libAdIdAccess” references from the plugin.xml, as well as removes it from references found in the corresponding node_module and .project.pbxproj. I have stored it in a Gist. https://gist.github.com/SteveKennedy/7edbe6e5f54d8582a27acbfd8d704c12.
I would attach the Hook to after_plugin_add or before_prepare. I am not sure what the right one is. Here’s the whole list https://cordova.apache.org/docs/en/latest/guide/appdev/hooks/. You can add this hook into your Config.xml like so (as an example):
<hook src="scripts/removeAdFramework.js" type="before_prepare" />
I think I’ve commented the code well enough for most people to make sense of what’s happening. I have done some basic testing, and it seems to work. Any suggested edits would be appreciated.