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

How to receive nRF51 BLE device from android phone notifications?

Hi I'm creating an android app for smartwatch(used nrf51 ble),I have two questions

1.I used ANCS(Apple notification center service) in my android app,but nrf51 device didn't read anything.I added ANCS UUID,characteristics and descriptors,but nrf51 didn't fire onCharacteristicReadRequest metho.How can I solve this problem?

2.If I can't use ANCS for android app,what can I use to receive all android phone notiifcations?

Thanks:)

Parents
  • Hi Enes,

    ANCS is for apple. Android doesn't support it natively. You need to write your code on Android app to send notifications manually. This is the same as defining your own service and characteristic (with ble_app_uart for example).

    Re-using ANCS on Android has the benefit that you don't need different firmware on the nRF52 size to deal with Android vs iOS.

  • It means there is no support on the Android phone. You need to write your own code to detect notification, for example a phone call. And then you send the notification (by your app on the phone) to the nRF5 device. As what iOS does for you when you use ANCS. You can either choose to do it exactly the same way as Apple defined with iOS or you can choose to do it your own way of notifying.

Reply
  • It means there is no support on the Android phone. You need to write your own code to detect notification, for example a phone call. And then you send the notification (by your app on the phone) to the nRF5 device. As what iOS does for you when you use ANCS. You can either choose to do it exactly the same way as Apple defined with iOS or you can choose to do it your own way of notifying.

Children
No Data
Related