简体   繁体   中英

Push Notifications or Intents to Phone from BLE Device when App is turned off

I have an BLE smart device that at any time should be able to inform the android cellphone of it's current state.

If I previously bounded the BLE device to my phone with my application but I have the app turned off . Can I then send an intent or notification to the phone from the BLE device to open the app or inform the user that something happened?

I also need to make the same functionality for IOS later on.

You can write a background Service class which scans for BLE devices. When app comes in device proximity, you can send a notification to the user. Remember,your device bluetooth should be turned on always.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM