DmcSDK / cordova-plugin-mediaPicker

cordova android ios mediaPicker support selection of multiple image and video gif ✨ cordova android 和 ios 图片视频选择cordova插件,支持多图 视频 gif,ui类似微信
MIT License
138 stars 92 forks source link

fix: permission alert crash #123

Closed h4ck-rOOt closed 2 years ago

h4ck-rOOt commented 3 years ago

After the permission was rejected by the user, the app crashes on iOS 13+. This is an attempt to fix this crash.

The callback seems to enqueue the alert dialog on background thread, which has no permission to access the "UIThread".

Since i'm no obj-c developer, there could other issues arise from this fix. But it helps in our project to prevent the crash.

Also this could fix #104