dji-sdk / Mobile-SDK-Android

DJI Mobile SDK for Android: http://developer.dji.com/mobile-sdk/
Other
973 stars 580 forks source link

Onproductconnect without Internet Connection #1107

Open gab933 opened 2 years ago

gab933 commented 2 years ago

Hi, I recall a bit the issue reported in "Smart Controller Doesn't Detect Drone Without Internet". I'm attempting to work with Wi-fi but without Internet connection. First of all, I connect Smart RC on Wi-fi with Internet connection and I'm able to both register SDK and connect drone. The callback "Onproductconnect" is correctly called, and everything works as expected. Once I turn off Wi-fi, I'm still able to register SDK and connect drone, and "Onproductconnect" is still called. Instead, if I connect Smart RC with Wi-fi without Internet connection, I'm still able to register SDK and connect drone, but "Onproductconnect" is never called. I tried to make this test some time ago (2-3 months ago) and everything actually worked. How can I solve this problem?

dji-dev commented 2 years ago

Agent comment from DJI SDK in Zendesk ticket #60179:

尊敬的开发者,感谢您联系DJI 大疆创新 由于github不是我们主要的咨询渠道,您的问题可能跟进不及时。我们建议您通过填写表单( https://djisdksupport.zendesk.com/hc/zh-cn/requests/new )向我们反馈问题。或者您也可以在论坛发帖,与其它开发者交流。论坛链接:https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

Dear developer, thank you for contacting DJI. Since github is not our main consultation channel, your questions may not be followed up in time. We recommend that you fill in the form (https://djisdksupport.zendesk.com/hc/en-us/requests/new) to report problems to us. Or you can post in the forum to communicate with other developers. Forum link: https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

°°°

DJI-William commented 2 years ago

When you connect the app the first time, the app will require a network connection to register, then it will generate a local cache. Therefore, later on when you open the app, the app will read the local cache so you don't need internet again. This is why you are enabled to register. "onProductConnect" never calls, I need more details on it. Maybe you can upload a test video for me to show your issue? Link:https://pan-sec.djicorp.com/s/8wpzfJdyi2McEyD dji123