Can I use Android Beacon Library in foreground service, even on Android 8 (Oreo)?
问题 What I want to achieve I am building an app for a shopping mall, with large amount of beacons installed not quite far away from each other (assume ~20m distance). When a user walks in this mall, even without opening the app, the app needs to keep scan for beacons. When a beacon is detected, I will then query the server to ask if I need to and what local notification to push to user. What I planned to do My original plan was to create a Service , returns START_STICKY in onStartCommand() in