This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to test ble_app_alert_notification on Android phone?

Hi, I'm working on a project, I want nRF51822 can get notification when android phone got a call or email, just like ANCS work with iPhone.

I tried ble_app_alert_notification and paired 51822 with my android phone, and set ALERT_NOTIFICATION_ENABLE by press KEY_0. But still got nothing.

Is there any app can test it ?

I tried MI band, it need app to bond it, and then can get notification when app not open(even not work in backround). If I didn't use app to bond it, only paired it with phone, it can't get notification. So I guess only paired with phone is not enough, it seems need app to do something or setup, right?

SDK : 10

Android : 4.3

Kindly regards,

Kirby

Parents
  • Hi,

    Yes, Android does not have a native service for notifications or alerts, like Apple does (ANCS). But, instead, it has API for notification listener (added in API 18, Android 4.3). Everyone can build their own app, request to be added as a listener (this has to be done explicitly by the user in Android Settings) and start sending info about notification, calls, SMSes, or alert any way they want, including the alert notification service. This is how Android Wear is doing it when you want to receive notification on your watch. You have to install Android Wear app on the phone, add it as a listener and then the phone will start sending messages to the watch using BLE, Bluetooth of WiFi, whatever is best.

    I was thinking about creating an app with such service for some time. I will let you know if I have time to do this.

    Best Regards, Aleksander

Reply Children
No Data
Related