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:
- 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.
- 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 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
Post a Comment