Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Firebase Push Notifications on Android.
Forum Updated to NodeBB v4.3 + New Features

Firebase Push Notifications on Android.

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 185 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zain_a
    wrote on last edited by
    #1

    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>
    
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved