Dears,
I am designing a notification application. I would like to know what if I want to support both of iOS and Android phone, which example code of ble_app_alert_notification & ble_app_ancs_c I should use it?
The ble_app_alert_notification example uses the Alert Notification Service to get notifications from an Android phone. The Alert Notification Service is defined by the bluetooth spec. An application that sets up a server on the Android phone needs to be running.
Ble_app_ancs_c uses ANCS (Apple Notification Center Service) to get notifications from an iPhone. ANCS runs natively on iOS.
You cannot connect ble_app_alert_notification to an iPhone or ble_app_ancs_c to an Android phone (unless maybe you do some hacks). Therefore, the device should run both the ANCS and ANS and let the phone decide what to use.
The ble_app_alert_notification example uses the Alert Notification Service to get notifications from an Android phone. The Alert Notification Service is defined by the bluetooth spec. An application that sets up a server on the Android phone needs to be running.
Ble_app_ancs_c uses ANCS (Apple Notification Center Service) to get notifications from an iPhone. ANCS runs natively on iOS.
You cannot connect ble_app_alert_notification to an iPhone or ble_app_ancs_c to an Android phone (unless maybe you do some hacks). Therefore, the device should run both the ANCS and ANS and let the phone decide what to use.
Dear Ole, Sorry to bother you. I am checking for nRF51series about ancs example. There is no device being found on iPhone. Here are the combinations of softdevice & ancs example I tried.
What SDK version are you using and which SoftDevice version are you using (it was rather unclear)? You can check the Compatibility Matrix to see which SDK works with which SoftDevice. I would recommend to use the latest stable version of SDK and SoftDevice.