I’m an absolute beginner in using Ionic and I am trying to build an app utilizing geofencing.
I used the Capacitor instructions to add cordova-plugin-geofence and @ionic-native/geofence to my projects, successfully built an iOS version, but when I press the button to create a geofence in the running app I get the following console warnings:
[warn] - Native: tried calling Geofence.addOrUpdate, but the Geofence plugin is not installed.
[warn] - Install the Geofence plugin: 'ionic cordova plugin add cordova-plugin-geofence'
Of course running the suggested installation command won’t work, since the project is using Capacitor. Is there something to do to make the app recognize the regular npm installation? Is the Cordova plugin simply outdated (the last commit happened 4 years ago)? Or could it have something to do with Ionic Vue (and maybe Cordova compatibility)?
6 posts - 2 participants