Firebase Push Notifications on Android.
-
Firebase Push Notifications on Android.
Everything is working fine, the listener is overrided fine (the token is generated and could be printed using the overrided OnTokenReceived method.
Notifications are delivered when app is on the background.
Problem is, when app is in foreground, the OnMessage method is not called.
Any idea what could be causing the problem ?
My manifest file :<service android:name="com.google.firebase.messaging.cpp.ListenerService" android:exported="false" > <intent-filter> <action android:name="com.google.firebase.MESSAGING_EVENT" /> </intent-filter> </service> <service android:name="com.google.firebase.messaging.cpp.RegistrationIntentService" android:exported="false" > </service>