flutterfirebasefirebase-notifications

Open app on firebase notification received in flutter


I want to open the application automatically when a firebase notification is received, without user interaction. means when my application is killed or in the background and when the user receives a firebase notification the application should open automatic without user interaction or clicking on the notification is this possible in the flutter

I want to add this feature in the video calling application that when I receive a notification the call screen with accept reject button should render and I also want to add the autoanswer feature in it.


Solution

  • You can achieve this in Android but Its not possible in iOS for now, For android its Full-screen intent notifications and for iOS most you can do is set an custom ringtone when notification is received, You can use the below mentioned library for most of your notification needs:-pub.dev/packages/flutter_local_notifications