I implemented a Receiver with a quick download and then a notification displayed once a day at 12 p.m.
The alarm works fine, but I get an HTTP connection error since the smartphone is in standby mode. The notification does display a connection error.
Is there a way to "wake up" the smartphone to maintain the HTTP connection?
Do I need to launch the Receiver more often to have a chance of the smartphone not going to sleep?
Should I stop using a Receiver and use a Service?
I'm really wondering if I should use notifications with Firebase instead; it seems more reliable to me (and perhaps simpler when I port this feature to B4i).
Have you ever faced this problem? This choice?
Thank you for your advice.
The alarm works fine, but I get an HTTP connection error since the smartphone is in standby mode. The notification does display a connection error.
Is there a way to "wake up" the smartphone to maintain the HTTP connection?
Do I need to launch the Receiver more often to have a chance of the smartphone not going to sleep?
Should I stop using a Receiver and use a Service?
I'm really wondering if I should use notifications with Firebase instead; it seems more reliable to me (and perhaps simpler when I port this feature to B4i).
Have you ever faced this problem? This choice?
Thank you for your advice.