I need all the notifications to appear in the notification center, and in my application only the notification received from the background or when the application is closed is presented in the notification center. That's my problem? How to add a notification to the notification center from the code?
Thank!
Check if the application is active when you receive a notification
if ([[UIApplication sharedApplication] applicationState] == UIApplicationStateActive)
, . , , , .
postNotification:, postNotificationName:object: postNotificationName:object:userInfo:
postNotification:
postNotificationName:object:
postNotificationName:object:userInfo:
. NSNotificationCenter
, !