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.

  • I know that, I want know what is sent to identify the app, for example if the app is facebook will it send a facebook word only or a com.apple.facebook ? ? will it send it with capital letters inside it or as I wrote "com.apple.facebook" I can't see the letters sent due to language problems in my Laptop

Reply Children
No Data
Related