Telerik-Verified-Plugins / ImagePicker

Cordova Plugin For Multiple Image Selection
MIT License
181 stars 328 forks source link

App freezes after calling getPictures() on iOS 14.2 on iPad Air #234

Closed Rob-Post closed 3 years ago

Rob-Post commented 3 years ago

Hello,

I've implemented the imagepicker in an Ionic 5 project and it's working fine on Android. Now I'm testing on iOS and my app freezes once I'm opening the imagepicker. This is reproduceable in an iPad Air simulator running iOS 14.1 and on a real iPad Air runnig iOS 14.2. The error I see in Xcode is

2020-11-30 08:14:36.286581+0100 MyApp[56496:2676747] THREAD WARNING: ['ImagePicker'] took '12.204102' ms. Plugin should use a background thread. 2020-11-30 08:14:38.233082+0100 MyApp[56496:2676747] [core] "Error returned from daemon: Error Domain=com.apple.accounts Code=7 "(null)""

I'm using version 2.3.5 of the plugin (also tried different versions)

"cordova-plugin-telerik-imagepicker": "^2.3.5",

The code for calling the imagepicker is this.imagePicker.getPictures({})

I've added the permission request string in config.xml

<edit-config file="*-Info.plist" mode="merge" target="NSPhotoLibraryUsageDescription">
    <string>Need photo library access to get pictures from there</string>
</edit-config>

I hope someone has a solution for this. If you need more information let me know. I'm quite new to developing for iOS.

Rob-Post commented 3 years ago

Setting the property disable_popover to true in the ImagePickerOptions fixed the problem for me