You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How Check Internet Connection in Broadcast Receiver or Service Like as we do in Activity ?
But I need in Service or Broadcast Receiver..
Means I need to check Internet Connation in Background continuously even if App is Running or Not/Closed..
As on Internet Connectivity change I want to Sync My Data to Server so please help me out..!!
Thanks..
The text was updated successfully, but these errors were encountered:
This library is designed to be used while app is running and active. If the Activity is inactive (in background) then library should not detect changes and it should start detecting connectivity changes again when app is active (in foreground) again.
If you want to use library when app is inactive (in the background), then you should create an Android Service and then use it inside Service. Of course, you need to dispose appropriate subscription/disposable, when Service is being closed or destroyed.
How Check Internet Connection in Broadcast Receiver or Service Like as we do in Activity ?
But I need in Service or Broadcast Receiver..
Means I need to check Internet Connation in Background continuously even if App is Running or Not/Closed..
As on Internet Connectivity change I want to Sync My Data to Server so please help me out..!!
Thanks..
The text was updated successfully, but these errors were encountered: