ios - DJI SDK throws the error "Application is not registered" Code=-1001 after calling the method DJIMissionManager.prepare -
after adding 5 djiwaypoints djiwaypointmission call following method.
djimissionmanager.prepare(djiwaypointmission, withprogress: {(progress: float) -> void in } , withcompletion: {(error: error?) -> void in }) at runtime method throws
error domain=djisdkerrordomain code=-1001 "application not registered.(code:-1001)" userinfo={nslocalizeddescription=application not registered.(code:-1001)} in code first check in callback method sdkmanagerdidregisterappwitherror whether application registered , call preparemission. impossible application not registered. particularly because video streaming works fine.
i appreciate hints on how can solve problem or more detailed error message.
the problem initialized djimissionmanager object directly inside viewcontroller using djimissionmanager.init() constructor.
solution: moved object initialization viewdidload() , used djimissionmanager.sharedinstance() instance of djimissionmanager object.
Comments
Post a Comment