Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RCTAdSupport uses advertisingidentifier which triggers Apple's automated detection upon submit #1303

Closed
jimmystridh opened this issue May 15, 2015 · 4 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@jimmystridh
Copy link

I just submitted an app to the AppStore earlier today, and I had to remove the implementation of the two methods in RCTAdSupport as to not trigger Apple's automated advertisingidentifier detection (https://github.com/facebook/react-native/blob/master/Libraries/AdSupport/RCTAdSupport.m#L20). They force you to explain why you are using advertisingIdentifier if they detect it (and might reject you if you're not using ads).

Perhaps this should be in the docs, or toggled via an ifdef if you actually use ads?

(Apple about advertisingIdentifier https://developer.apple.com/news/?id=08282014a)

@jimmystridh
Copy link
Author

Perhaps obfuscating the usage with NSClassFromString could be a workaround as not to trigger the automated detection.

@ide
Copy link
Contributor

ide commented May 15, 2015

The best fix is for the sample project to not link in AdSupport. Only apps that track users across different apps made by different companies require it.

@shayne
Copy link
Contributor

shayne commented May 15, 2015

Apple has made it pretty clear if you're not serving ads don't think about using the advertisingIdentifier. IIRC they'll detect the call at runtime so no matter how you obfuscate the message, if in the end you're calling advertisingIdentifier they'll flag it.

@robertjpayne
Copy link
Contributor

I think the idea is that the obfuscation will prevent rejected apps from people that are not using the identifier.

However the app will still then be linked to the AdSupport.framework which may raise some eyebrows.

@ide ide closed this as completed in 5f841a9 May 16, 2015
dsibiski added a commit to rnplay/rnplay-native-deprecated that referenced this issue Jun 5, 2015
- Not needed right now and will cause issues with submission to Apple

Reference: facebook/react-native#1303
dsibiski added a commit to rnplay/rnplay-native-deprecated that referenced this issue Jun 5, 2015
- Not needed right now and will cause issues with submission to Apple

Reference: facebook/react-native#1303
rozele referenced this issue in microsoft/react-native-windows May 25, 2016
Summary:
Many apps don't need AdSupport, especially not when people are making a sample app to learn React. Apps that do want it can link it in like any other library.

Fixes #1303, see the discussion there.
Closes facebook/react-native#1305
Github Author: James Ide <ide@jameside.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
facebook-github-bot pushed a commit that referenced this issue Apr 28, 2017
Summary:
Looks like RN unlinked the RCTAdSupport module from the React project because it triggers some automatic detection from Apple. (from this thread #1303). So this includes the instructions to manually add RCTAdSupport files from node_modules.

See: #12623
Closes #12657

Differential Revision: D4962321

Pulled By: hramos

fbshipit-source-id: ed9aed3b4c16e72d1f9557f5c16fcdadfdd743ea
thotegowda pushed a commit to thotegowda/react-native that referenced this issue May 7, 2017
Summary:
Looks like RN unlinked the RCTAdSupport module from the React project because it triggers some automatic detection from Apple. (from this thread facebook#1303). So this includes the instructions to manually add RCTAdSupport files from node_modules.

See: facebook#12623
Closes facebook#12657

Differential Revision: D4962321

Pulled By: hramos

fbshipit-source-id: ed9aed3b4c16e72d1f9557f5c16fcdadfdd743ea
@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants