android - Not seeing Geofence Transitions in Google's tutorial on Geofencing -


i trying test geofence functionality using google's example: creating & monitoring geofences. have uploaded code here.

problem never notification of entry or exit. have wifi, 4g , gps on. have tried test in following ways:

  1. i walk out of house 50ft , walk in - no notifications. can see play services gets connected , "geofenceutils.action_geofences_added in mainactivity.java" gets triggered, think geofences getting added correctly.
  2. enabled mock locations in settings , used fake gps app , changed location - starting same coordinates geofence1 , setting totally outside (in state) - still dont exit notification.

what doing wrong? had success in running google's example: creating & monitoring geofences. have uploaded code here easy browsing.

i trying learn geofencing - detecting entry & exit. i mark answer right answer can use geofencing working on real device

i enter coordinates , radius below.

i having issues example code. 1 of main issues had around declaring receivetransitionsintentservice. don't need add broadcastreceiver or request location updates, need change androidmanifest set exported value true, so:

<service     android:name=".receivetransitionsintentservice"     android:exported="true" > </service> 

make sure path service correct.

i've simplified google example , can find code , explanation here. i've removed ui component , persistent geofence storage, example should easier follow. hope helps!


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -