Nexus 5X app exit without error msg when call plugin cordova-imagePicker

My android version is: 7.1.1
Build number: NMF26F
Android platform: 24

The root cause is cordova-imagePicker can not alert user get the permissions of access storage, the default permission is off. So I enabled the storage permission by mannual then work out. But this is not solution, dose anyone has some method to fix it? Thanks.