Without getting into too much detail. The DJI SDK fails on registration when compiled as an Android App Bundle (AAB). This is true for our code as well as DJI's own example github called Android Sample Bundle. The steps taken are as follows: - download DJI's sample code.
- obtained a AppKey using "dji.sample.appbundlesupport" as instructed.
- replaced "Please enter your App Key here." with our app key in the dynamic_dji_sdk->manifests->Androidmanifest.xml
- If I build and deploy the app as an apk (using the configuration setting "Default APK"), it works as expected ('load dynamic' runs successfully and the SDK registration succeeds when 'Go to SDK' is pressed). If it is deployed as an aab (using the configuration setting "Using APK from app bundle"), it reports "load failed" and SDK registration cannot be attempted. This failure happens when it tried to register the app.
Some that we have worked with have claimed that it works correctly and is registering however I have a hard time believing that. A recent article from Drone DJ suggest that new android versions are no longer on Play from DJI. I don't know if this is related.
Please prove me wrong and get the registration to work correctly with a compiled AAB so we can deploy our app to the Google Play Console. Thanks!
|