cowbell / ionic-geofence

Ionic geofence app example
MIT License
180 stars 92 forks source link

window.geofence is always undefined #29

Closed fnokeke closed 7 years ago

fnokeke commented 8 years ago

Hi,

Running ionic serve shows everything working just fine. However, on closer look, I realized that $window.geofence is always undefined (that means GeofencePluginMock 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

tsubik commented 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.