I am building an Android app that requires real time updates. My server is Firebase. Firebase is meant to receive its updated data when the user is connected to the server. I am very impressed with Firebase so far, however my concern is receiving the new data when the app is not active. I really do not want to try these ideas to find out they are a bad idea, for I am short on time. I am looking for suggestions and advice.
- A service (example). Worried about battery consumption and going over my connection limit if users are always connected.
- An AlarmManager to run a sync every X hours. Worried about not getting updates quickly enough.
- Using GCM push notification to send a tickle. Worried about paying for another service.
Any other suggestions or possible issues I missed? Thanks for your time!
Edit
I found this thread. Still unsure. Maybe a service is not a bad idea, per James Tamplin (Suspect he is Firebase dev)