I have a problem with receiving push notifications when app is in background or it was killed. When app is in foreground, didReceiveRemoteNotification:
is called and app gets the push notification. However when app is in background or it was killed, and push notification arrives to the device, ONLY sound can be heard but banner is not showed, even if apps has set UIUserNotificationSettings for badge, sound and alert (in 'Settings' app everything is enabled).
If I'm not wrong didReceiveRemoteNotification:
works both for foreground and background states, if app is not running at all, and user touch the notification's banner, the notifications info will be received in didFinishLaunchingWithOptions:
.
So the question is: why didReceiveRemoteNotification:
is not working in background AND why notification's banner not showed when app is in background ?