Need scheduler to
Run task immediately after net is available
Reschedule task if it fails because of some problems.
should handle cases of broadcast receiver to know if connection available
No delay in execution if the internet is already available not like GCMNetworkManager's OneOfTask which take at least 30 seconds to execute the scheduled task
I tried GCM Network Manager's OneOfTask which handles it but takes at least 30 seconds to execute even if the internet is available.
Is there any other scheduler which will all above task in one.
Use a broadcast receiver which can listen to network connectivity change. And check weather the device is connected to internet or not using ConnectivityManager. If your device is connected to the internet then schedule your task.
To use broadcast receiver. Add the following lines to manifest.
Listener class: