I am using webPushlib/webpush to send push notification from my node server.
Everything is working fine but when i trigger push notification it only shows for a few seconds.
I want to display until user action(click or close).
You can use the requireInteraction option of the sendNotification method.
Related
I am having problem on wonderpush. I tried to use the in app functionality to have a custom message for user to subscribe to web push notification but it doesn't work.
I tried modifying the in app sample to use only 1 button to subscribe and it did not work. I see clicks but no one is subscribed to the push notification list. I have also disabled the native subscribe function.
Try removing the automatic subscription prompts like the HTML dialog and the Native Prompt in your Web Settings
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
Is there a way to display full chat message in push notifications?
Push notifications are only displaying first few characters of the message on both Android and iOS.
I bet you are using automatic push notifications that were enabled in admin panel. In order to customise push notifications itself you need to create and send pushes by yourself (just disable automatic ones in admin panel).
Here is example on how to do it: http://quickblox.com/developers/SimpleSample-messages_users-ios#Send_Push_Notifications_from_application_.28via_API.29
I am using push notification in worklight 6.2 in one of my apps.
I have a issue regarding receiving of notification. i receive notification when i am in the application .
When i close my app or made my app go background, i receive notification in the status bar and when i click on that,its taking me to the app ask for the authentication which is provided in the app and then goes to the inbox where all the messages are listed the new message is displayed .
But when i receive the notification when my apps is in background and see the notification in status bar and without clicking that notification if i opened the application and see the inbox page ,the message is not displayed because the function which will be executed when receiving notification is not called.
I need to give solution to avoid this. Is there any way or option to display the notification which is received when the app is in background and when the app is opened without opening the notification in status bar.
Thanks in advance
Perhaps you could use a the Cordova resume event, from which you will call the pushNotificationReceived() function as the callback function.
document.addEventListener("resume", pushNotificationReceived, false);
The basic premise is that if a notification was received while you were in the background, then once returning to the foreground the above should executed and the notification will be displayed.
Again, this is just the basic premise and you'll probably need to modify the pushNotificationReceived() implementation to account for what happens when you get back to the foreground but there are no notification (you could implement some logic to check that...) and various other scenarios, as you encounter them.
I have created an app, used the client/api keys in my android app to subscribe to a channel. I can see my device on the core/installations page but on the send push page, clicking on the send a push button doesn't do anything. Instead I see the message "No push notifications to display yet." and a button "learn how to send push notifications". I have to add that this is not my first app but a new one. What has changed?