Geofence triggering procedure explanation needed?

前端 未结 1 334
生来不讨喜
生来不讨喜 2020-12-02 03:02

SO I\'ve created geofence as below:

    GeofenceModel modelExit = new GeofenceModel.Builder(\"id_oi_456\")
                .setTransition(Geofence.GEOFENCE_T         


        
1条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-02 03:25

    I think it is working as intended. The project that goes to re-run will consider the app as fresh install. As stated in the documentation - Use Best Practices for Geofencing:

    The app must re-register geofences if they're still needed after the following events, since the system cannot recover the geofences in the following cases:

    • The device is rebooted. The app should listen for the device's boot complete action, and then re- register the geofences required.
    • The app is uninstalled and re-installed.
    • The app's data is cleared.
    • Google Play services data is cleared.
    • The app has received a GEOFENCE_NOT_AVAILABLE alert. This typically happens after NLP (Android's Network Location Provider) is disabled.

    Hope this helps.

    0 讨论(0)
提交回复
热议问题