How to get popup alert for message received in ios - ios

I am learning IOS and could not find that in a messaging app how to get the alert (popup box on screen and NOT a banner on top) for a message received (like in whatsapp or a built in messaging app).
Also, is it possible to get the alert if the app is open (like in whatsapp if we are using whatsapp then wee do not receive any pop up or banner for the message received).
Thanks in advance

If you want to receive popups in opened app you should create custom view. Native alerts about push notifications shown only if app in background or suspended and it's appearance customised by device settings
For example, you could use this library for popup box notifications or this for banner style

Related

Appcelerator: Show push messages in the Notification Center when the app is in the foreground (open)

If the iOS app is open and a push message arrives, the push message does not appear in the NotificationCenter. I can process the content in the opened app. But the typical banner doesn't come.
Does anyone have a solution for Appcelerator (iOS)?
Or do I know whether the app was opened via a push message?
Thank you
You have to create an alert or something else yourself while the app is running in foreground. The notification will only appear when it is in background.

Localnotification with background mode, Without click on notification open an UIAlertView

When my app is notify by local notification then without click on notification i want to open an UIAlertView. Is this possible for IOS?
I am attaching screenshot for detail understanding.
With iOS8 you can display actions for the user to choose from in the form of buttons. These buttons can launch your app in the background to perform some task or they can launch your app into the foreground as you can do with the notifications available in older versions of iOS.
You can't, however, display a UITextField for the user to enter data.

iOS Push Notification open different app

Can IOS push notifications open another app via its URL scheme (ie. SOMEAPP://someUrlScheme)?
I've looked through the documentation but haven't seen any mention of this.
Directly from the notification bar I think it is not possible, but you can handle notification received event show a popup and launch another app on click event of that popup

implementing application indicator in notification bar blackberry phonegap

We have a requirement in Blackberry to display application indicator when notification is received for a particular app,currently in background.On receiving a notification, a notification icon has to be displayed.On click of that notification icon, notification summary should display application icon and message to user informing him of new notification.Finally on click of application icon,the app has to be brought to foreground from background.
Currently we are able to display the notification icon,but we are unable to display application icon in notification bar.
The application is a hybrid app built using Phonegap.I have followed the steps as stated in the following link:-
http://supportforums.blackberry.com/t5/Java-Development/Application-Indicators-and-Home-Screen-Integration/ta-p/614919

PushNotification in iOs and Application icon is clicked

I receive PushNotification as badge as well as alert and are displayed as badges on the app icon.
I receive the payload successfully when I click on alert, which appears at top area of the screen.
But, if the notification is received and I click on the application icon i don't get the payload in any of below mentioned the methods.
application:didFinishLaunchingWithOptions:
application:didReceiveRemoteNotification:
So, what could be the problem or have I missed something in handling such case.
That would be expected behavior. You don't want to show the push notification for the user if he himself did not actively chose to to tap on the alert. If user is in your app while receiving notification you can ask the user if he wants to view it or dismiss it.

Resources