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

Apple notification center service

I'm working on a project & I'm trying to use the apple notification center service, it works with me & I can detect notification on my device, I wonder if I can ask about the classification of the notifications, kindly check the link below: ANCS

for example,if I want to differentiate between the incoming call notification & the facebook notifcation I can use the categoryID value to detect if its an incoming call or a facebook but what if I want to differentiate between the facebook notifaction & twitter notification ?? they have the same category ID value?

also I'm asking about the calender events -Apple Application- if it sends notification to the Apple notification center or not, I searched on it but no gain.

also if you can tell me if I detected that the notification is incoming call, what if I want to know the mobile number or name is calling, I mean what it the procedure to follow or I'd be grateful if you help me with an example

thanks in advance

Parents
  • @Mohamed: I don't have much experienced with ANCS but as shown here, if you want to get more information about a notification, you should send the "Get notification attributes" to request information on particular attribute. Please have a look at the figure at the end of the page.

    In your case it should be "NotificationAttributeIDAppIdentifier" attribute, as in the link you pointed to.

    The notification from calendar should be notified to ANCS. As far as I know, any notification will be forwarded to ANCS client.

  • @mohamed: If you have a look at our ble_app_ancs example, when you press Button2, "Get notification attributes" will be sent and you will have more information about the notification including App Identifier, Title, Subtitle, etc. It's described here.

    Please have a look at the BSP_EVENT_KEY_1 event in bsp_event_handler() function in main.c.

Reply Children
No Data
Related