You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related code:
/src/pages/ionic-native/runtime-permissions/runtime-permissions.ts
// You can use this kind of method, which is passing a permission value..
requestPermission(permission) {
this.diagnostic.requestRuntimePermission(permission).then((status) => {
if (status === this.diagnostic.permissionStatus.GRANTED) {
alert('Permission granted!');
} else {
alert('Permission not granted. STATUS: ' + status);
}
}, error => {
console.error('permission error:', error);
});
}
// There is also a method that takes an array of permissions to ask for them at once
requestAllPermissions() {
const permissions = Object.keys(this.PERMISSION).map(k => this.PERMISSION[k]);
this.diagnostic.requestRuntimePermissions(permissions).then((status) => {
alert(JSON.stringify(status));
}, error => {
console.error('permission error:', error);
});
}
Important information:
hi,
diagnostic.requestRuntimePermissions and diagnostic.requestRuntimePermissionss only support platform android?
[Warning] Native: tried calling Diagnostic.requestRuntimePermissions, but the Diagnostic plugin is not installed. (vendor.js, line 184286)
[Warning] Install the Diagnostic plugin: 'ionic cordova plugin add cordova.plugins.diagnostic' (vendor.js, line 184286)
[Error] permission error: – "plugin_not_installed"
The text was updated successfully, but these errors were encountered:
I'm submitting a ... (check one with "x")
[ ] bug report
[ ] feature request
[X ] support request
Related code:
/src/pages/ionic-native/runtime-permissions/runtime-permissions.ts
Important information:
hi,
diagnostic.requestRuntimePermissions and diagnostic.requestRuntimePermissionss only support platform android?
see https://www.npmjs.com/package/cordova.plugins.diagnostic#requestruntimepermissions
we try run this app on ios,
The text was updated successfully, but these errors were encountered: