cordova-plugin-android-permissions icon indicating copy to clipboard operation
cordova-plugin-android-permissions copied to clipboard

Error in production

Open pedrogaldino opened this issue 9 years ago • 3 comments
trafficstars

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.

pedrogaldino avatar Nov 09 '16 19:11 pedrogaldino

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'

shogunfighter avatar Sep 15 '17 10:09 shogunfighter

I think you need to run the plugin inside the platform.ready()

this.platform.ready().then(
	() => {
		//RUN YOUR PLUGIN HERE!
	}
);

shogunfighter avatar Sep 15 '17 11:09 shogunfighter

@shogunfighter Thanks for your post I will add this into README.

NeoLSN avatar Sep 19 '17 04:09 NeoLSN