dji-sdk / Mobile-SDK-iOS

DJI Mobile SDK for iOS: http://developer.dji.com/mobile-sdk/
Other
576 stars 255 forks source link

Mavic 2 setStorageLocation:withCompletion not setting storage location #359

Open brien-crean opened 4 years ago

brien-crean commented 4 years ago

When using the Mavic 2 with the Mobile SDK setStorageLocation:withCompletion is not setting the storage location passed to it. In the completion callback I use getStorageLocationWithCompletion to check what the storage location has now been set and it returns the correct value I passed in e.g. DJICameraStorageLocationInternalStorage.

However when I take photos they are stored on the previously set storage location which was the SD card. If I then restart my iOS app I can see that the storage is set to the SD card.

Also If I go into DJI Go I can see that the storage location has not changed from SD card. The only way to currently change the storage location is to use the Go 4 app. I can set it to internal storage here and my app is now able to store photos on the internal storage.

[DJISDKManager.product.camera setStorageLocation:storageLocation 
    withCompletion:^(NSError * _Nullable error) {
      if (error == nil) {
        [DJISDKManager.product.camera getStorageLocationWithCompletion:
              ^(DJICameraStorageLocation location, NSError * _Nullable error) {
                   NSLog(
                       @"STORAGE LOCATION %@",
                       [Convert DJICameraStorageLocationToString:location
                   ]);
        }];

SDK Version: 4.11.2 Drone: Mavic 2 Pro

dji-dev commented 4 years ago

Agent comment from Luce Luo in Zendesk ticket #34055:

Dear Customer,

Thank you for contacting DJI. To help us collect questions in detail, please fill in the form below and we will handle this ticket once we have received it. https://formcrafts.com/a/dji-developer-feedback-en

Thanks,

Luce Luo DJI Dev Team

brien-crean commented 4 years ago

Thanks @dji-dev I submitted the form for this issue