You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is a bug or not so asking here first.
I am currently working on an application for iOS where I want to send push notifications through Firebase's Cloud Messaging console, and send notifications through https://fcm.googleapis.com/fcm/send via a Java http request. I created an onMessage listener shown here:
This listener is successfully fired if I send a message through the Firebase console in my project, however nothing happens if I attempt to send a data message through an HTTP request even when I get a 200 response code. For reference, here is the payload I am sending to the http request in Java:
Basically my question is as follows: does FirebaseMessaging.onMessage only work for Notifications sent through the Firebase console. If so, is there an alternative to FirebaseMessaging.onMessage for data messages through a https://fcm.googleapis.com/fcm/send http request?
Let me know if there is anything else I can add to help.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Not sure if this is a bug or not so asking here first.
I am currently working on an application for iOS where I want to send push notifications through Firebase's Cloud Messaging console, and send notifications through https://fcm.googleapis.com/fcm/send via a Java http request. I created an onMessage listener shown here:
This listener is successfully fired if I send a message through the Firebase console in my project, however nothing happens if I attempt to send a data message through an HTTP request even when I get a 200 response code. For reference, here is the payload I am sending to the http request in Java:
Basically my question is as follows: does FirebaseMessaging.onMessage only work for Notifications sent through the Firebase console. If so, is there an alternative to FirebaseMessaging.onMessage for data messages through a https://fcm.googleapis.com/fcm/send http request?
Let me know if there is anything else I can add to help.
Beta Was this translation helpful? Give feedback.
All reactions