• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Checking My Methodology

JXWD

Lurker
Hi all just wan to check I am on the right path...

I want to poll a web server every 5 minutes and create an alert depending on the outcome...

Method:
Use a background Service which is loaded on boot and has an empty screen
Use alarm manager to call the BroardcastReciever
Use OkHttp in the receiver to open webpage and see if there are any messages...


Obviously I don't want to annoy people by wasting more power than necessary.

Thanks -Hagen
 
Thank you yes may use REST but seems a little more than I need... Another option could be to use a push notification via firebase?... Can my web server tell firebase to create a push notification? thank you :-)
 
Back
Top Bottom