Avatar for dan.shneider

dan.shneider

Member since Aug 2018 • Last active Sep 2018
  • 1 conversations
  • 1 comments

Most recent activity

  • in Projects
    Avatar for dan.shneider

    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)

Actions