Recently we have updated iOS 13. Earlier to the update our app was able to pick videos/media from Gallery. But lately after new update, the app picks the video from gallery but once it is uploaded, the uploaded content is shown as 0 bytes. Guessing that OS is not giving access to Gallery from our app.
In iOS 12 and prior versions we didn't see this issue. Gallery was working fine with our App.
Below delegate method returns different URLs in iOS 13 and earlier iOS versions.
- (void)videoPickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{
NSURL *videoURL = [info objectForKey:UIImagePickerControllerMediaURL];}
I am returning Video URL path from the UIImagePickerController.
iOS 13 returns below value
file:///private/var/mobile/Containers/Data/PluginKitPlugin/36B89CF8-26FC-44BA-AFE1-D689DC04AF44/tmp/trim.400D33F1-BA28-42C8-B6B7-5CEC26656917.MOV
Earlier iOS versions returns below value file:///private/var/mobile/Containers/Data/Application/7BFD7CEC-E383-4C63-8DF8-A0830EE948AC/tmp/36346EAD-AADC-4A9A-9DEE-416A2DE0BE71.MOV
Note: When the video recorded in camera directly from app is uploaded. It doesn't throw us any issues. It is when the video picked from Gallery then the app behaves differently.
Please share your suggessions.
Thanks in advance.