Geofencing : HTTP request failed while sending through the background service. Gives UnknownHostException

前端 未结 5 640
天命终不由人
天命终不由人 2021-02-05 12:48

I implemented Geofence in android application. I followed this link to implement \'Geofence\' in app. I am using \'Retrofit\' library to call \'HTTP\' request.


Ap

5条回答
  •  猫巷女王i
    2021-02-05 13:29

    Maybe your app gets blocked to use network by Androids doze mode and/or app standby. Check Optimizing for Doze and App Standby.

    A possible solution is to setup an alarm with the AlarmManager. Android will schedule the alarms processing in a maintenance window where you are allowed to use network.

提交回复
热议问题