Posts

Post not yet marked as solved
0 Replies
297 Views
We got a problem with UIImagePickerController: in our application users can pick media with big size(for example 4k video). For media picking we use UIImagePickerController and everything worked well. But if the user moves the device to sleep, when selected media on processing, and come to the app again - then delegate method fired.func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any])and in info dictionary its consist only two values: UIImagePickerControllerReferenceURL and UIImagePickerControllerMediaType. So it is missing needed values for getting URL of picked assets. Delegate method fired exactly when the app returns from the background and clearly earlier then media should be processed. Due to files can be very big, we can`t afford user to reselect asset each time that app goes to background. Maybe anyone had this problem and know a solution?
Posted
by shshs.
Last updated
.