I'm using a BroadcastReceiver combined to a AlarmManager in my app to fetch periodically my user's notifications. To do so, i have to make calls to the Rest API of my service. My question is more about good practice than technique, i'm concerned about battery and network usage (over cellular networks). So, if the user sets the refresh period to 5s, will this be a huge problem for his battery, following this pattern (a Rest call every 5s via a BrodcastReceiver), or is there a better way to do this ? Note : i'm already using setInexactRepeating instated of setRepeating on my AlarmManager.
Thanks for reading.