When i search for b4i firebase i find this: https://www.b4x.com/android/forum/threads/firebase-integration.68623/#contentNo server is needed for Firebase notifications. You can use the B4J code to send the requests (take it from the B4i tutorial).
thank you very much for this tutorial now it works (without it i would never be able to set up the push notifications)
Just dont subscribe to the topic with that device.and it should not recive that notification..Hi Erel,
I did all the steps in this tutorial and everything works fine.
However, I noticed that the device that sends the message also receive the message just sent. Is it possible to avoid this? I don't need to receive a message that I have sent.
I need to subscribe my device to this topic, because I want to receive messages from other users of this topic, but I don't want to receive messages sent from my device. In this case I think that I may find a workaround, for example: I could insert in every message a "sender" ID, so if sender == mysender_ID then ignore this message.Just dont subscribe to the topic with that device.and it should not recive that notification..
I must not work with ID users stored in a DB Table, because I'm using the UID provided by Firebase Authentication, so I'm sure this UID is really unique.You can create a txt file with the msg u sent and when u receive a msg u check if such a file exists that contains the same text. If true dont show notification.
Thhis should be simpler to implement then create user and handle a db where all users are listed to avoid give two users the same user id....