implementing application indicator in notification bar blackberry phonegap - blackberry

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

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.

Handle push notification when app is running and notification tray is opened

While trying to implement FCM in my iOS app, I came across this issue. I have my app opened, at the same time I slide down the Notification tray of my device. When I send a push notification, my application state prints as INACTIVE (which is correct since the tray comes in foreground, leaving my app in the background)
I am loading a URL on notification tap, hence when user slides up the tray, the url is directly loaded and no notification is displayed in the tray.
In this scenario, I wish to display notification in the tray and open URL only when the user taps on the notification. Is there any way to detect if the Notification tray is visible over my app specifically?
you can use Third party library : https://github.com/bryx-inc/BRYXBanner or you can show alert by handling if app is in foreground or inactive state in notification recieving delegate.

How to get popup alert for message received in 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

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

Resources