cordova-plugin-android-permissions
cordova-plugin-android-permissions copied to clipboard
Error in production
Hello, I'm having an issue when the app go to the Play Store.
It's works normally with ionic run android But when I send it to the play store, the app does not show the request for permission anymore. I don't check any option for "never asking". The app just not show the request permission dialog and always return false when I check the permission with the plugin function.
Normal build seems ok.
cordova build android
But we are getting error logs when building for production.
cordova build android --prod
vendor.js:1 Native: tried calling AndroidPermissions.checkPermission, but the AndroidPermissions plugin is not installed.
vendor.js:1 Install the AndroidPermissions plugin: 'ionic cordova plugin add cordova-plugin-android-permissions'
I think you need to run the plugin inside the platform.ready()
this.platform.ready().then(
() => {
//RUN YOUR PLUGIN HERE!
}
);
@shogunfighter Thanks for your post I will add this into README.