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

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -