A question about registering BLE notification on android:
I am using espruino firmware on a ruuvi-tag.
Trying to understand, on the android app side how can I register some intentservice to be called when a ble connection was made to the android framework.
Just a note: a broadcast receiver registered in manifest can no longer launch your app. android background services policy was changed, and since api M (I think) this can't be done. so
I am trying to use JobScheduler which was designed to be launched based on criteria. this can launch a JobService to do the job.
When the app is in foreground or background this seems to be working.
The thing is, I need to be notified when the app is not running (Not even in background)
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem