$a.native

πŸ“˜ Contains all included @ionic-native plugins.

By default, webView, device, splashScreen, statusBar, keyboard, audioinput are available.

Other @ionic-native plugins become available after adding them under App settings > Cordova plugins.

See https://ionicframework.com/docs/v6/native for more information.

hasLocationPermission

hasLocationPermission(): Promise<boolean>

Works on the web and in the native app (if the Diagnostic plugin is activated). Returns true if the app has Location Permission.

Returns

Promise with boolean.

Example

let hasPermission = await this.$a.hasLocationPermission();