Hello World!
I’m making a android app using ionic and angular.
When i try to inject the geolocation object in the constructor the application crashes.
Without any error’s the page is simply not shown.
I use the following code
import { Geolocation } from '@ionic-native/geolocation';
constructor(public alertController: AlertController, private router: Router, private geolocation: Geolocation)
{
}
My env:
Ionic:
Ionic CLI : 6.9.2 (C:\Users\Jim\AppData\Roaming\npm\node_modules\@ionic\cli)
Ionic Framework : @ionic/angular 5.1.1
@angular-devkit/build-angular : 0.901.7
@angular-devkit/schematics : 9.1.7
@angular/cli : 9.1.7
@ionic/angular-toolkit : 2.2.0
Capacitor:
Capacitor CLI : 2.1.0
@capacitor/core : 2.1.0
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.1.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 5 other plugins)
Utility:
cordova-res : 0.14.0
native-run : 1.0.0
System:
Android SDK Tools : 26.1.1 (C:\Users\Jim\AppData\Local\Android\Sdk)
NodeJS : v12.16.2 (C:\Program Files\nodejs\node.exe)
npm : 6.14.4
OS : Windows 10
1 post - 1 participant