I am developing a reminder app with flutter. I want to send a scheduled notification from the application and redirect it to the notification page when the incoming notification is clicked.
I tried this with flutter awesome. When I clicked on the notification, I was not successful in sending to the page.
source
Is there any way I can do this with another method?
Related
I have a flutter application that receives FCM Data messages.
On each data message, I create a respective notification locally using the awesome_notifications library. I have 2 action buttons on the notification. The action button click navigates me to a specific page when the application is in the foreground or background(paused).
But, the same click action doesn't work when the app is terminated/killed. Instead of navigating to some page, it just opens the application's homepage.
I'm listening to actionStream, but it seems it doesn't work when the app is terminated.
If anyone has a solution to this, it would be beneficial!
i have an application which is working fine. i add chatting to the app with notification. Any time users are chatting it send notification both in foreground and background.
my question:
how can i add notification reply just like WhatsApp. if a user send me message and i get the notification, i should be able to reply from the notification without opening the app.
Thanks
Have a look at this package: Awesome Notifications. It is still under construction but it will enable you to display custom notifications including a TextField that you can show when a real Push Notification got received.
I want to know if the following is possible in flutter using flutter firebase messaging (FCM)
Scenario:
The app is closed or killed. A firebase push message is sent to the device (or device is listening on some topic etc.). The app gets the notification in the background and based on a flag in the data, either shows a notification in the notification tray or opens the app and displays a modal dialog to alert the user of an emergency notification. This has to happen automatically without having the user to click on the notification
Use case,
Any notification with medium severity that comes in can be displayed as a notification in the notification tray. The user can click on it and open the app whenever he wants to
Any notification with critical severity and which requires immediate user attention needs to automatically show a modal dialog with some buttons to enable the user to take action. It must play some sound to get the users attention.
I have done this in android previously where we used to get the notification in the notification handler and then based on the incoming message data, we used to either show a notification or show a dialog.
Can we send full screen push notifications like how google sends notification when an unauthorized person/new mobile tries to login the e-mail in flutter?
I am using One Signal push notifications in my ionic app. I want to show an alert when i receive a notification when my app is in background.
I tried using the platform pause and remuse functionality to check for background and foreground and then generate an alert when app was in background using ionic alert controller but was not able to produce the desired result.
I want a pop up dialog box like one in whastapp when u receive a message.
Can anyone please suggest a solution to this.
There is no way to achieve what you're trying to achieve through the use of OneSignal alone. The OneSignal plugin for Ionic has two calls to action:
handleNotificationReceived() & handleNotificationOpened()
The first one is called when the notification is received and the app is in the foreground.
And the second is called when the app is launched from the notification.
You would need some other service to record when notifications are sent to see if there were any when the app was launched by itself. If you use OneSignal's REST API to send notifications yourself, you can record when a notification is sent, and then when the app is launched by itself, you can fetch missed notifications or notification count from your own server. That's just one way you can do it.
But OneSignal is a push notification service, which send notifications. Even if you did FCM yourself and went through the scenario you mentioned, the results would be the same.
It's not a OneSignal issue. It's the way notifications are designed.