send image in push notification - codenameone

I've only sent texts in push notification till now. Can I send images as well in cn1? And how can I open a specific screen through clicking push notification? Up to now, it only opens the home screen of the app.

There is an RFE for supporting rich push notifications here. It's currently pretty bare of use cases so I suggest adding those as it's scheduled for the next update.

Related

Make web push notifications to show for longer

We integrated web push notifications in our React App with firebase, it is working fine both in foreground and in background. When the app is in foreground we attached a event listener (onMessage) that will handle the event and will create a push notification with the Notification Object. It is also working fine.
My question is, is there any way to increase the amount of time the notification (foreground notification) will be shown to the user? currently it is visible for 5 to 6 seconds (in Brave, Linux Mint).
Thanks in advance
No you cannot increase the time your notification is shown.

React Native & Firebase Cloud Messaging: How to avoid duplicated push notification?

I have one website(React) and mobile app (React Native) which are both connected with the same Firebase Projects.
I have a button inside my Website; every time I click the button, my application receives a push notification from firebase (Firebase Cloud Messaging).
However, in case of slow internet connection or browser gets refreshed, my user is able to send a duplicated push notification.
How do I avoid this duplicated push notifications situation? In other word, I want to replace the old push notification every time I get a new push notification.
You can clear all notification before showing new notification. Version 6 do not handle provide functionality to remove notification. But you can use version 5. It has cancelAllNotifications method. You can also use react-native-push-notification.

Push Notifications for Windows Application

I'm trying to develop a chat application for windows.As in all chat applications I also have a requirement of showing notifications whenever the User gets a message.Now,what I want is how can I show a notification and clicks on that notification will have to perform some task.How can I achieve this.
Thank you.

Push Notification Ionic. How to handle data of multiple notification?

I have implemented a push notification on my ionic app using cordova push notification.
The whole Notification part is done. I receive notifications properly, but the problem is when I receive multiple notifications for eg.
If I have 3 notifications in ascending order
message1
message2
message3
And if I clicked on 1st notification which is 'message1'. Further app gets open and it shows me 'message3'.
No matter whichever notification I'll click, it always shows a last notification which was received.
I'm not getting how to catch a data of notification on which I had clicked
(Is it possible by local notification plugin? which has onclick function.)
PLEASE HELP

Pushing pictures with push notifications (ngCordova, Angular, Ionic)

Recently, I have come across some apps, that are able to show me a picture (in addition to some text) in the application drawer / lock screen when a push notification arrives. I would like to know if it is possible to implement this with Ionic / Angular / ngCordova stack.
Even if the PushNotification retrieves the image property, I think the local notification is not able to display an image at the moment.
The question has already been asked in the cordova-plugin-local-notifications plugin GitHub Issues:
https://github.com/katzer/cordova-plugin-local-notifications/issues/536
but it hasn't been answered.

Resources