Geofence not triggering

后端 未结 4 1178
悲哀的现实
悲哀的现实 2020-12-10 17:43

I\'m trying to implement Geofence on my APP and the problem is that is not triggering when I\'m on the place that I\'ve marked.

The thing that I do is I

4条回答
  •  情歌与酒
    2020-12-10 18:40

    It will never work because what you are doing is

    Intent intent = new Intent(appContext, GeofenceSingleton.class);
    

    passing intent to GeofenceSingleton ?

    What you need to do is

    Intent intent = new Intent(appContext, GeofenceTransitionsIntentService.class);
    

提交回复
热议问题