How can i differentiate normal push notification from rich push notification? - push-notification

I currently integrated Urban Airship in my application, i implemented simple push notification and i also implemented the rich push notification, now both of them works properly, when i send a normal notification it is received correctly, and when i send a rich push message bundled with a push notification it is also received correctly,
but i want to know how can i differentiate if that notification is just a normal notification or if it is a notification that is bundle with a rich push message, i cannot figure out how to do this because both push notification call the same methods,
Thank you in advance

Related

Handle Notification data without click on notification in ionic 3 (One signal push notification)

i am using Onesignal in ionic 3. I am getting notification properly when the app is in foreground. When I receive a notification in background i am getting the data in the notification only after tapping the notification. But i want to get the data without tapping on the notification.
You're looking for Silent Notifications (Silent Notifications are background notifications that do not show any message on the device)
Right now, you're likely using the onOpened handler. You will need to set up a service extension and be prepared to have to write native code!
https://documentation.onesignal.com/docs/silent-notifications

How can I find out about notification delivery (ti.goosh)

I use Appcelerator Titanium and I have module ti.goosh for push notification. How can I find out about notification delivery? In 'callback' I can find out about opening the notification, but I want to also know that the notification is in the device tray (for example using console.log).
I depends on what kind of message you are sending. A FCM data message is handled by the module with the NotificationCompat.Builder but if you are sending a normal FCM notification message the system is creating the notification and displaying it. You will only know if the notification was clicked by the user (like you already do) or if it arrived while the app was in foreground.

background push notification in ionic3

I have completed an e-commerce app in ionic3. The problem is I want user to be notified when new offers or deals are added in our inventory. This should be a backend process, whether or not the app is open or close.
Note: There is no firebase involved.
If you want to use to get notification in same device then you can try Local notification native plugin for notification and if you want to send notification to other device then you have to use Push or FCM or Onesignal and yes this all required firebase to send push notification to generate device id/key.

how to implement notification in android TV

Can it possible to send push notification in Android TV through FCM?
If it is possible then how can we send push notification through FCM and how to show it in Android TV?
Yes, you can send notifications to Android TV, they will arrive to your service.
Now that since there is no system tray, there is no default UI got them, so you need to do that yourself, you can't use the default behavior and you can't use notification manager.
I think notification will appear just as recommendations and not as "notification".
One option will be using toasts or even a notification-android-tv

Ionic Firebase push notification issue

I'm using Firebase for push notification. Problem is i want to send push notification for some mobile phones but when i'm sending push notification it will send notification to all installed mobile app
You would need to get the mobile token and then store it somewhere on your server.
Then you can send to specific devices using the mobile token.
Just in case, i actually wrote a full guide on how to implement push notifications to your ionic app here

Resources