cordova ask permissions code example
Example 1: cordova permissions
cordova plugin add cordova-plugin-android-permissions
Example 2: cordova internet access permission
<allow-navigation href="*" />
<allow-intent href="*" />
<access origin="*" />