Is there any alternative to navigator.permissions.query
Permissions API query to check geolocation
permission.
cause its still in Working Draft and has less Browser compatibility.
W3C Permissions Ref : https://www.w3.org/TR/permissions/
Issue is app resume
once user perform action on native permission popup then wanted to check the action
being taken by user.
Hybrid Cordova App callback for location permission alert
Platform : Mobile Android
NOTE : Don't want to use cordova diagnostic plugin
Example:
navigator.permissions.query({name:'geolocation'}).then(function(result) {
console.log('result : ', result);
});
name
? – Afritgeolocation
permission. – Potencenavigator.permissions.query
is available solution to check the permissions. but its still inworking draft
and has less browser support, specially in mobile browsers. so looking for alternatives. – Potence