iphone - Get push notification while App in foreground iOS -
i using force notification service in app. when application in background able see notification on notification screen(screen shown when swipe downwards top of ios device). if application in foreground delegate method - (void)application:(uiapplication*)application didreceiveremotenotification:(nsdictionary*)userinfo
getting called notification not displayed in notification screen.
i want show notification on notification screen independent of whether application in background or foreground. tired searching solution..... help appreciated....
for might interested, ended creating custom view looks scheme force banner on top adds close button (small bluish x) , alternative tap message custom action. supports case of more 1 notification arrived before user had time read/dismiss old ones (with no limit how many can pile up...)
link github: agpushnotethe usage on-liner:
[agpushnoteview showwithnotificationmessage:@"john doe sent message!"];
and looks on ios7 (ios6 have ios6 , feel...)
iphone ios objective-c push-notification
No comments:
Post a Comment