The android Marshmallow has a new built in doze feature that shuts down background processes after some time. How to resolve this by simply checking if the device is waking up from this doze event and then relaunching the scheduler process (comparing the timestamps to see how much time has passed).
PLease Help!!