When I click on the push notification I land inside the app but not on the particular respective screen whose notification is that .
used this awesome_notifications: ^0.6.21
Related
I am using the receive_sharing_intent package to receive an image in my flutter application.
I understand the example they show and how it works,
but I want that when I receive an intent my application shows a specific screen (not the screen that I have in the main), how can I do this?
Is it possible to clear/hide any received notifications from the notification drawer using flutter programmatically?
I have seen several apps like 'Spren', 'Daywise' to have this behaviour/functionality.
I have multiple screens and I'm using named routes in flutter using getx package.
The problem I'm facing is I'm able to navigate to any other screen when tapped on push notification, but when I go back from that screen my app closes.
But expected outcome is when navigating back I should go to home screen and app should not close.
Please help
Try using the following when back button is pressed:
Navigator.popAndPushNamed(context, '/homeScreen')
How to make a flutter app work always in the background, so that after a call ends, I can show a pop-up on the screen(similar to truecaller app).
How to implement this in dart?
You can checkout Alert Dialog here
https://api.flutter.dev/flutter/material/AlertDialog-class.html
I have a platform specific background service in android that shows a notification. i want it to have a functionality - when the notification is been clicked i want the flutter app to start or even better open to a particular widget, is this possible in flutter ?
Open the app is the default behavior when a notification is tapped. To perform a specific operation when the app is open you can pass data in that notification and handle it in a root widget, to intercept it and for example navigate to a specific page in your app.