Open jimmyfraiture opened 3 years ago
Agent comment from William Wong in Zendesk ticket #41771:
Dear Client
Thank you for contacting DJI.
What is the error message looks like? Have you apply an appkey and insert it into the AndroidManifest.xml? Please try with the github demo it should work.
Hopefully our solution can help you. Kindly Regards, DJI Developer Support
I am experiencing sort of the same thing. The application starts, the debugger hits
DJISDKManager.getInstance().registerApp(getApplicationContext(), mDJISDKManagerCallback);
But the following is never called back:
public void onRegister(DJIError error) {
And the DJI mini go app never connects to the aircraft.
EDIT:
The unmodified version of the code, when downloaded straight from Github, seems to have a bug: The callback is defined only after it was passed along to the registerApp
method. Hence the registerApp
method got null
and never calls anything back. So make sure the callback is defined before calling registerApp
.
Hello, When I try to register my application with `DJISDKManager.getInstance().registerApp(MainActivity.this.getApplicationContext(), new DJISDKManager.SDKManagerCallback() { @Override public void onRegister(DJIError djiError) { if (djiError == DJISDKError.REGISTRATION_SUCCESS) { showToast("Register Success"); Log.d("DJI SDK", "Registered"); DJISDKManager.getInstance().startConnectionToProduct(); } else { Log.e("DJI SDK", "Registration failed"); showToast("Register sdk fails, please check the bundle id and network connection!"); } Log.v(TAG, djiError.getDescription()); }
The application run for ever without calling the onRegister function. Is it a known issue or is it a solution? (all my permissions are granted)