I am trying to build an app that simply detects beacons at all times...when running in foreground or background, after reboot, etc.
I noticed the following in the android beacon library example program...
// Uncomment the code below to use a foreground service to scan for beacons. This unlocks
// the ability to continually scan for long periods of time in the background on Andorid 8+
// in exchange for showing an icon at the top of the screen and a always-on notification to
// communicate to users that your app is using resources in the background.
My questions are...
- Is this really necessary?
- if we don't do this what are the repercussions?
- is there a way to do both and would that be better?
- how can I get the app to start scanning after reboot?
Thanks for any help.