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

how to access iOS7's ANCS on nRF51822?

hi, i want to get the Email,MissedCall,Other(SMS) from Apple(ios7) to my device.

i survey that , ANCS(Apple Notification Center Service ) at the the Latest iOS7 and access to Notification Center, allowing Bluetooth devices to automatically receive any notification event from your iOS device.

So, I don't know how to build the ANCS on my client(device) and server(iphone). can you give me a suggestion?

device: create the ANCS client(by the custom UUID,128bit) from ANS client sample. iphone: how to bond the ANCS with my app? how to access the ANCS?

nRF8001 devzone.nordicsemi.com/.../how-to-setup-a-pipe-to-access-ios7-s-ancs

The Apple Notification Center Service developer.apple.com/.../Specification.html

  • Hi,

    nRF51822 as peripheral (it, unfortunately, cannot be a central, complicating life!! ) and GATT Client or Server (role switching).

    The NP - Notification Provider - (Apple ANCS) acts as a Central, starts discovering nRF51822 peripheral and initiates a connection.

    With connection established, nRF51822 is now called NC -Notification Consumer-.

    From now, NP acts as Client and starts to discover services and characteristics and subscribing them.

    Done this step, NC takes the role of Client and starts to discover all characteristics and services on the NP.

    The role switching may happen many times during connection.

    If NP sends notifications is a server, if NC requests to read a characteristic is a client and nRF51 switches to server role.

    -c

  • hi, i have some question , Can you give me a director.

    now i try to build the ANCS which reference SDK sample "ble_app_alert_notification" and porting the Master Control panel -setup server to iOS device.

    "follow your answer ,when nRF51(NC) and iOS(NP) connect, NP acts as Client to discover services and characteristics and subscribing them(NC provide the services and characteristics), after this setup the NC takes the role of Client and starts to discover all characteristics and services on the NP."

    1. when my iOS device connect the sample(ble_app_alert_notification) the peripheral (nRF51) failing on response on service discovery function. the p_ble_evt->evt.gattc_evt.gatt_status is not BLE_GATT_STATUS_SUCCESS.

    BLE_GATT_STATUS_ATTERR_ATTRIBUTE_NOT_FOUND
    (the central(iOS) and peripheral(nRF51) do service discover at the same time?)

    I hope you will be able to provide the information.

  • Hi,

    ANCS is a primary service, predefined by Apple with UUID (see Apple doc).

    Your device must play only with the service and characteristics provided by ANCS.

    ANCS exposes three characteristics:

    (See Apple doc)

    An ANCS session begins when an NC (nRF51) subscribes to the Notification Source characteristic on an NP and ends when the NC either unsubscribes from the same characteristic or disconnects from the NP.

    From the ANCS point of view, ble_app_alert_notification is a perfect stranger (unknown UUIDs) .

    -c

  • excuse me,i describe have some miss. i want to program an App on iOS device with nRF51(ble_app_alert_notification ) but when NC(nRF51) connect NP(iOS,custom profile), the NC have an error response on service discovery function the p_ble_evt->evt.gattc_evt.gatt_status is BLE_GATT_STATUS_ATTERR_ATTRIBUTE_NOT_FOUND .

    Can you give me a director.

  • The device that is accessing ANCS needs to run a GATT Client. Are you running it ?

    But I cannot understand how your ble_app_alert_notification should be able to connect to ANCS.

    -c

Related