Hi @LucaMs/All
Apologies I opened this thread in order not to post on older one.
I agree with your statement for not to include the API key in the client code, and I agree that it is not clear on how this can be implemented.
I have been researching this for a while ( b4x and other) but I am still in confusion and not sure what is the correct approach to implement a client to send notification based on topic to other client(s).
I have seen some websites refer to that it is a must to have app server to process all messages to client, but how this app server can receive those notification messages.
One thing that I have in mind to solve this is to use MQTT to send the payload (the notification data) to VM, save/compare the token to DB, then either use the B4Jsending-tool (or B4J APP) to send the notification to the clients.
Again I am not sure if this is the right or correct approach to do this, but my use case for this in my app, is that I will have section for admin to send notification to specific users based on topic.
Advice will be much appreciated for best practice, or if someone implemented this before.
Thanks
Apologies I opened this thread in order not to post on older one.
[Resolved] FCM - Android to send the push messages
Hi All, I have been following Erel's tutorial for how to implement FCM and I have successfully push the message using the B4J example. I have searched the forum however I can not find a way to make the android itself publish the message, so my question, is this doable to make the android App...
www.b4x.com
I agree with your statement for not to include the API key in the client code, and I agree that it is not clear on how this can be implemented.
I have been researching this for a while ( b4x and other) but I am still in confusion and not sure what is the correct approach to implement a client to send notification based on topic to other client(s).
I have seen some websites refer to that it is a must to have app server to process all messages to client, but how this app server can receive those notification messages.
One thing that I have in mind to solve this is to use MQTT to send the payload (the notification data) to VM, save/compare the token to DB, then either use the B4Jsending-tool (or B4J APP) to send the notification to the clients.
Again I am not sure if this is the right or correct approach to do this, but my use case for this in my app, is that I will have section for admin to send notification to specific users based on topic.
Advice will be much appreciated for best practice, or if someone implemented this before.
Thanks