I have set an Alarm when app goes background which working fine, but inside the service I have api which is calling every 5 minutes interval for sending location to server, after app goes in background, service works continue but due network my api is not called and getting socckettimeOutException though network is available.