There is no API for accessing notification information in iOS. The only way to get notification information in your application is that the user activates your application from the notification.
For this reason, chat applications on iOS, such as AIM, Textie, etc., check their servers for new messages when they are activated. I suspect you will have to do the same.
If a user activates your application from a notification, you can still use this information for a proper conversation, but the contents of this conversation must be filled out from the server.
In addition, the only way to programmatically βclearβ notifications is to set the value of the application icon icon to zero.
source share