R Rams007 Member Sep 12, 2020 #1 I still can't work out how to send push notifications. So far I have firebase working on B4A. I have setup a firebase account, created a new project with the apps project name, downloaded the JSON file. But I can't find the correct code or understanding of how push notifications work. So say you created an app and you wanted to notify all users that were running this app of some event, how do I do this. Does the notification come locally from the users app or it come from a server or the firebase website. How does it work?
I still can't work out how to send push notifications. So far I have firebase working on B4A. I have setup a firebase account, created a new project with the apps project name, downloaded the JSON file. But I can't find the correct code or understanding of how push notifications work. So say you created an app and you wanted to notify all users that were running this app of some event, how do I do this. Does the notification come locally from the users app or it come from a server or the firebase website. How does it work?
Erel B4X founder Staff member Licensed User Longtime User Sep 13, 2020 #2 Watch the video tutorial: https://www.b4x.com/android/forum/t...s-firebase-cloud-messaging-fcm.67716/#content It explains all steps. Upvote 0
Watch the video tutorial: https://www.b4x.com/android/forum/t...s-firebase-cloud-messaging-fcm.67716/#content It explains all steps.
R Rams007 Member Sep 13, 2020 #3 Erel said: Watch the video tutorial: https://www.b4x.com/android/forum/t...s-firebase-cloud-messaging-fcm.67716/#content It explains all steps. Click to expand... Am I correct in saying your app connect to a server running a PHP script, if an events happens in your app and a notification needs sent, the PHP script connects to the firebase server and the firebase server sends the notification. Could the PHP server not send the notification? Upvote 0
Erel said: Watch the video tutorial: https://www.b4x.com/android/forum/t...s-firebase-cloud-messaging-fcm.67716/#content It explains all steps. Click to expand... Am I correct in saying your app connect to a server running a PHP script, if an events happens in your app and a notification needs sent, the PHP script connects to the firebase server and the firebase server sends the notification. Could the PHP server not send the notification?
Erel B4X founder Staff member Licensed User Longtime User Sep 13, 2020 #4 No. There is no mention of PHP in the video tutorial. Upvote 0
DonManfred Expert Licensed User Longtime User Sep 13, 2020 #5 Rams007 said: Am I correct in saying your app connect to a server running a PHP script Click to expand... No. The Server side is a B4J App which sends the Notification. You can use any language to send the Notification as long as you are sending the Messages in the correct format. See the B4J App... Upvote 0
Rams007 said: Am I correct in saying your app connect to a server running a PHP script Click to expand... No. The Server side is a B4J App which sends the Notification. You can use any language to send the Notification as long as you are sending the Messages in the correct format. See the B4J App...
R Rams007 Member Sep 13, 2020 #6 DonManfred said: No. The Server side is a B4J App which sends the Notification. You can use any language to send the Notification as long as you are sending the Messages in the correct format. See the B4J App... Click to expand... So you don't need firebase? Then what is the point of firebase? Upvote 0
DonManfred said: No. The Server side is a B4J App which sends the Notification. You can use any language to send the Notification as long as you are sending the Messages in the correct format. See the B4J App... Click to expand... So you don't need firebase? Then what is the point of firebase?
DonManfred Expert Licensed User Longtime User Sep 13, 2020 #7 Rams007 said: So you don't need firebase? Click to expand... Sure you need it. You send a call to firebase to send the notification. Rams007 said: Then what is the point of firebase? Click to expand... I suggest to check the Firebase side and read something about it. Firebase Cloud Messaging | Send notifications across platforms Discover Firebase, Google’s mobile and web app development platform that helps developers build apps and games that users will love. firebase.google.com Upvote 0
Rams007 said: So you don't need firebase? Click to expand... Sure you need it. You send a call to firebase to send the notification. Rams007 said: Then what is the point of firebase? Click to expand... I suggest to check the Firebase side and read something about it. Firebase Cloud Messaging | Send notifications across platforms Discover Firebase, Google’s mobile and web app development platform that helps developers build apps and games that users will love. firebase.google.com