-
Notifications
You must be signed in to change notification settings - Fork 1k
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
App rejected for referencing (while not using) APIs that access sensitive user data #1942
Comments
Did you remove those keys from In the documentation there is some description about this requirement: https://capacitor.ionicframework.com/docs/ios/configuration#managing-permissions |
@naranjamecanica yes I removed them since I don't use them nor intend to. One workaround is to put in some dummy values, but I think it would be better if you can opt out of the ones you done use. It's more clean in my opinion. |
Since Apple scans the code and Capacitor ships with all the plugins, it will detect that the code is present despite your app doesn't use any of those features. The only solution would be to take the plugins out of Capacitor, not sure if that's going to happen in short therm. |
@chrene can you elaborate on "put in some dummy values"? As in dummy values in the 'Value' section of the respective key? |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Description of the problem:
It seems that
@capacitor/core
code references APIs that access sensitive user data. In this case it's the photo library.I'm not calling any of the functions that request authorisation to use the API, but it seems that apple will now check the code up front and if you reference any of these sensitive API's which capacitor does with its native plugin core the will reject it with a warning.
example in
Camera.swift
Affected platform
OS of the development machine
Other information:
Capacitor version:
1.2.0
node version:
v10.16.1
npm version:
6.9.0
CocoaPods version:
1.7.5
Steps to reproduce:
Remove unused privacy explanation keys in
Info.plist
for those API's you never call and upload to app store for a testflight.For now I will place dummys as a workaround, but I think the core could potentially be split into modules that we can install when needed instead of having all the privacy API's up front.
The text was updated successfully, but these errors were encountered: