Background running in geofence


#1

I used Geo fence to make a proximity application.but its work only when i open the app. how to set this app in background run.i want to check the condition in every 15 seconds. pleas help me.


private addGeofence() {
    //options describing geofence
    let fence = {
      id: '69ca1b88-6fbe-4e80-a4d4-faizy4d3748acdb', //any unique ID
      latitude:       8.556498, //center of geofence radius
      longitude:      76.881820,
      radius:         100, //radius to edge of geofence in meters
      transitionType: 1, //see 'Transition Types' below
      notification: { //notification settings
        id:             121212122, //any unique ID
        title:          'You crossed a fence', //notification title
        text:           'You just arrived to white oval technology.', //notification body
        openAppOnClick: true //open app when notification is tapped
      }
    }

#2

Did you figure this out or did you use the background geolocation plugin?