Today for the first time, I started messing with B4XPages and Firebase. Even though I had already watched B4XPages, I hadn't fumbled to understand better.
The hardest thing was Firebase, configuration and settings, especially with iOS. (Traumatic , certificates, profiles, keys ....)
I noticed that a B4XPages example for firebaseAuth is missing and it is not easy to adapt.
I thought of adapting FirebaseMessager instead of sending a message to users from the developer (as an advertisement or notification) I wanted to create an app that the user could send a message and all other users would receive it. A kind of chat .
This also required the ability to authenticate to identify who is sending the message ... here is the result.
I hope it will be useful to someone
NB. In order to send messages you must insert the Server_Key that you get in the Firebase site.
For ios: the specific ProvisionFile must be created. For authentication you need to get the #UrlScheme. Copy the GoogleService-Info.plist file to the special folder
For Andoird: Copy the google-services.JSON file to the project folder.
PS. I based the code on the following sources, If you have any questions, check all the links indicated where everything is described in detail step by step. Don't ask me questions, I know as much as you do and maybe a little less about Firebase or B4XPAGES
The hardest thing was Firebase, configuration and settings, especially with iOS. (Traumatic , certificates, profiles, keys ....)
I noticed that a B4XPages example for firebaseAuth is missing and it is not easy to adapt.
I thought of adapting FirebaseMessager instead of sending a message to users from the developer (as an advertisement or notification) I wanted to create an app that the user could send a message and all other users would receive it. A kind of chat .
This also required the ability to authenticate to identify who is sending the message ... here is the result.
I hope it will be useful to someone
NB. In order to send messages you must insert the Server_Key that you get in the Firebase site.
For ios: the specific ProvisionFile must be created. For authentication you need to get the #UrlScheme. Copy the GoogleService-Info.plist file to the special folder
For Andoird: Copy the google-services.JSON file to the project folder.
PS. I based the code on the following sources, If you have any questions, check all the links indicated where everything is described in detail step by step. Don't ask me questions, I know as much as you do and maybe a little less about Firebase or B4XPAGES
FirebaseAuth - Authenticate your users
This library requires B4A v6+. It allows the users to sign in to your app with their Google account (more identity providers will be added in the future). Like all Firebase services it is quite simple to integrate this service in your app. 1. Follow this tutorial and make sure to add the...
www.b4x.com
FirebaseAuth - Authenticate your users (Google + Facebook)
Start with this tutorial: https://www.b4x.com/android/forum/threads/firebase-integration.68623/ FirebaseAuth allows your app to identify the user based on their Google or Facebook accounts. We will start with Google integration. 1. Make sure that Google is enabled under Authentication -...
www.b4x.com
[B4X] [B4XPages] Firebase Push Example
A simple, B4A + B4i, example based on: B4A: https://www.b4x.com/android/forum/threads/firebasenotifications-push-messages-firebase-cloud-messaging-fcm.67716/ B4i: https://www.b4x.com/android/forum/threads/firebasenotifications-push-messages-server-not-required.68645/#content It receives push...
www.b4x.com
Attachments
Last edited: