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

iOS 10 Support #46

Closed
brianantonelli opened this issue Sep 28, 2016 · 6 comments
Closed

iOS 10 Support #46

brianantonelli opened this issue Sep 28, 2016 · 6 comments

Comments

@brianantonelli
Copy link

I'm unable to run the a sample app on iOS 10 in both the simulator and on a iPhone 7. It appears to be failing during the application registration call. I'm on 10.0.2 using the 3.3 DJI SDK.

On an iPhone 7 running iOS 10.0.2 I get the REGISTRATION_INVALID_METADATA error.

If I run the same code on the iOS 10 Simulator I get the REGISTRATION_DEVICE_NOT_MATCH error.

This error occurs when I invoke the register method ([DJISDKManager registerApp:appKey withDelegate:self];)

It's also worth nothing I see this error when running on the device: Couldn't find the "com.apple.private.externalaccessory.showallaccessories" entitlement

My plist has:

  • Supported external accessory protocols (com.dji.video, com.dji.protocol, com.dji.common)
  • App Transport Security Settings: Allow Arbitrary Loads: YES

I tried all the suggestions from Issue #33 like changing the bundler identifier, etc.

@dji-dev
Copy link
Contributor

dji-dev commented Sep 29, 2016

Hi @brianantonelli , thanks for your feedback! We are investigating this issue now, will get back to you once we make some progress.

@brianantonelli
Copy link
Author

This is definitely an iOS 10 issue, I just verified the same code runs fine and successfully registers the app on iOS9

@dji-dev
Copy link
Contributor

dji-dev commented Sep 30, 2016

Hi @brianantonelli, please try to turn on the Data Protection in Capabilities of your Xcode project using Xcode 8. Then change the project's Bundle Identifier to a different one and try again. Remember to do a clean test (Delete the app on your iPhone 7, clean the project and rebuild it to install on your device) Let us know if it helps. Thanks!

@dji-dev
Copy link
Contributor

dji-dev commented Sep 30, 2016

@brianantonelli Here is the screenshot for you to check the settings: screen shot 2016-09-30 at 2 36 26 pm

@Brew-Fox
Copy link

Data Protection and deleting app off simulator worked for me. As bundle id is tried to so many things I cant change it. Glad I was able to navigate around that.

016-09-30 13:33:23:521 xxxx DJIManager: DJI SDK Registered
2016-09-30 13:33:23:522 xxxx DJIManager: Connected to product? Simulator

@brianantonelli
Copy link
Author

Enabling Data Protection fixed the issue on the simulator and my iPhone. BTW, I didn't have to change my bundle identifier. Thanks for the quick help, @dji-dev! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants