While importing Geolocation:
import { Geolocation } from '@ionic-native/geolocation/ngx';
Gettin error:
ionic Geolocation :Ionic v4 Uncaught TypeError: Object(…) is not a function
this error occured when cordova plugin is not installed you need to install cordova plugin and reserve project
ionic cordova plugin add cordova-plugin-geolocation
npm install @ionic-native/geolocation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With