Closed sreejith-pagematics closed 10 months ago
The NotificationTapped
event is supposed to be firing when tapping the notification regardless in which mode the app is. Are you calling the FirebaseCloudMessagingImplementation.OnNewIntent(intent)
method in the OnCreate
and OnNewIntent
methods of your MainActivity
class?
You can take a look at the samples MainActivity
as reference: https://github.com/TobiasBuchholz/Plugin.Firebase/blob/b6ccded2d442f38d29ac74ae3307dcc1d70d0c1b/sample/Playground/Platforms/Android/MainActivity.cs#L24
@TobiasBuchholz
I didn't add the OnNewIntent
method on MainActivity class. Now I added that and foreground notification tapping is working fine.
I am using
Plugin.Firebase
andPlugin.Firebase.Crashlytics
packages for implementing push notification in my MAUI application. I referred this blog and it was working fine on the Android platform.I have added the
NotificationTapped
event on theApp.xaml.cs
Constructor. This event is firing when the app is inBackground
orKilled
modes. But the app is in foreground mode, this event is not firing. Below is my code:Is anything else we need to do for firing this event on foreground mode?