Past 2 weeks I am trying to build a geofence Apk, When i initialize the plug in it’s showing plug in is ready and i set the geofence
let fence = {
id: ‘69ca1b88-6fbe-4e80-a4d4-ff4d3748acdb’, //any unique ID
latitude: 12.9330951, //center of geofence radius
longitude: 80.243273,
radius: 100, //radius to edge of geofence in meters
transitionType: 3, //see ‘Transition Types’ below
notification: { //notification settings
id: 1, //any unique ID
title: ‘You crossed a fence’, //notification title
text: ‘You just arrived to Gliwice city center.’, //notification body
openAppOnClick: true //open app when notification is tapped
}
}
and i called method this.geofence.addOrUpdate(fence).then(
() => console.log(‘Geofence added’),
(err) => console.log(‘Geofence failed to add’)
);
I got Geofence is added but my problem is i cross the geofence or come in to geofence radius i didn’t get the any notification,
and
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.19.3
ionic (Ionic CLI) : 3.20.1
global packages:
cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1)
local packages:
@ionic/app-scripts : 3.2.2
Cordova Platforms : android 8.1.0
Ionic Framework : ionic-angular 3.9.5
System:
Android SDK Tools : 26.1.1
ios-deploy : 1.9.2
Node : v10.15.0
npm : 6.9.0
OS : macOS High Sierra
Xcode : Xcode 10.1 Build version 10B61
Environment Variables:
ANDROID_HOME : /usr/local/share/android-sdk
Misc:
backend : pro
this is my ionic info
I tried lots of way’s but nothing work for me
please help anyone…