I am trying to wakeup my android app via nearby bluetooth devices. If I force close the app (in Android 8.0 and above), and when I bring my Android device near to a BLE device, can I get a callback or intent callback so that I can push a ForeGround service and make the app stay awake.
I tried scanning for the BLE devices nearby but when the app is force killed, the BLE scan stops and I cannot wake up the app via BLE nearby devices.
解决方案
Force stop kills application totally. It won't get FCMs, alarms in AlarmManager are removed too, etc. So app processes are totally killed, and any info is removed.