Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49184

Background running in geofence

$
0
0

@Faizyfaazz wrote:

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
      }
    }

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>