Mobile-SDK-Android-V5
Mobile-SDK-Android-V5 copied to clipboard
function pushFlyZoneLicensesToAircraft in Mini 3 error Fly safe error : LicenseUnlockNotSupported.
I want to unlock license in Mini 3 device but when i download License done then i push this license to device then error {errorType='FLY_SAFE', errorCode='COMMON_ERROR', innerCode='null', description='Fly safe error : LicenseUnlockNotSupported.', hint='common error'}
Step: Step1: call function downloadFlyZoneLicensesFromServer state => done i have license of category
{"countryId":0,"cylinderHeight":-1,"cylinderLatitude":0.0,"cylinderLongitude":0.0,"cylinderRadius":0.0,"description":"Unnamed1","enabled":false,"endTimeStamp":1718989140,"flyZoneIDs":[],"isValid":true,"licenseId":26550716,"licenseType":"PENTAGON_UNLOCK_AREA","limitedHeight":-1,"polygonPoints":[{"latitude":21.202978134155273,"longitude":105.77156066894531},{"latitude":21.201696395874023,"longitude":105.77842712402344},{"latitude":21.19817543029785,"longitude":105.77842712402344},{"latitude":21.197856903076172,"longitude":105.76915740966797},{"latitude":21.202978134155273,"longitude":105.77156066894531}],"ridUnlockType":"UNKNOWN","sn":"687XM120020HUC","startTimeStamp":1718730000}
Step 2: then i call function pushFlyZoneLicensesToAircraft then error {errorType='FLY_SAFE', errorCode='COMMON_ERROR', innerCode='null', description='Fly safe error : LicenseUnlockNotSupported.', hint='common error'}
this is my code https://gist.github.com/apatheticL/f98b85cd56fce8c14b6c99905f9491d8
Please help me how to fix it. Thank so much.