cordovaionic-frameworkphonegapionic-v1

Ionic - How to create location based login


I'm try to create a location based login app using ionic version 1. Purpose is to user can submit there attendance (arrival and departure) when they are on office area through app. The back end stuffs should be on PHP/MySQL for API.

App features -

Here question is -


Solution

    1. You can use the cordova-diagnostic-plugin to check if the user has given GPS permissions. If he did not, you can just not give him access to the app and tell him he needs to activate it.

    2. You can use the cordova-plugin-mauron85-background-geolocation to set up a geofence around certain points and then send a push notification once the user enters.