Closed fnokeke closed 7 years ago
ionic serve
is running this application in browser environment just for testing purposes. It is using plugin mock to easily test application workflow. Cordova plugin is installed only for ios
, android
and wp
environments.
Hi,
Running
ionic serve
shows everything working just fine. However, on closer look, I realized that$window.geofence
is alwaysundefined
(that meansGeofencePluginMock
is used instead).I tried installing the cordova plugin directly into the ionic app:
cordova plugin add cordova plugin add cordova-plugin-geofence
but geofence is still undefined.Any pointers will be helpful. Thanks