-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Possible rejection because of private API usage #1091
Comments
@badeleux Thank you for catching this. I think you're right that we don't want to take any chances. @emrah88 Can you take a look at this? There are a couple approaches described at https://stackoverflow.com/questions/15456130/add-custom-header-field-in-request-of-avplayer It's unfortunate that it takes a lot of work to overcome this, but there's no clear messaging from Apple on whether using I'm going to open a PR to comment out the header code on iOS. If anyone knows someone from Apple that could get us an approval to use this approach, that's also a solution. |
@c-goettert Did you have success on this? |
@c-goettert any update on this? |
Current behavior
Describe what happens when you encounter this issue.
It hasn't happened for me yet ;)
Reproduction steps
Send iOS app to review
Expected behavior
iOS app should pass review
Platform
Which player are you experiencing the problem on:
Video sample
Any
Recently added support for request headers for iOS uses private API.
AVURLAssetHTTPHeaderFieldsKey
used here: https://github.com/react-native-community/react-native-video/blob/master/ios/RCTVideo.m#L338 is not officialy documented, therefore some apps might be rejected because of it.The text was updated successfully, but these errors were encountered: