Total thread: 131
Total reply: 50
Firebase Realtime Database
I had a good fun with Firebase Cloud Messaging (FCM), created a simple server prototype using PHP with curl in local notebook, the implementation was quite simple and similar to GCM.
After everything done with FCM then I tried to play with the so called "Firebase realtime database", I modified the sample from Firebase sample "Friendly Chat", setup my project properly in Firebase console including entered my local machine AndroidStudio's debug.keystore's SHA1 fingerprint into my Firebase console (see: https://codelabs.developers.google.com/codelabs/firebase-android/#3) then download the updated "google-services.json" to put in my "app" directory (which has app's build.gradle file).
I've encountered error about FAILING to SignIn using Google, I have checked the Internet for solution but could not find proper solution but then I found the solution from (http://android-developers.blogspot.kr/2016/03/registering-oauth-clients-for-google.html) which tell me to go Google api console (https://console.developers.google.com/apis/credentials?project=) to get/download another file "client_secret.json" to put in "/src/main/resources/" (this folder is not exist, so I must create it), the filename when I downloaded was "client_secret_xxxx.json" so I need to rename it to "client_secret.json", then my app can signin with Google properly, this solution was not described in (https://codelabs.developers.google.com/codelabs/firebase-android/) and I think someone in Google dev team need to explicitly put more info about this.
Anyway, I think Firebase realtime database is cool, in my testing I use 2 separate Google ID to signin and the chatting data was quick, there is also option in Firebase console to export and import the data and I tried to edit the exported data with a new data then both my testing devices can get the updated data/messages immediately, this import function is like realtime injecting new data to be synced with all devices immediately.
I understand Google need to make money from Firebase realtime database, my only gripe was the free "Spark" account is only limited to "Simultaneous connections of 100 devices", I have no problem with the database size of 1GB because this size can be controlled to be under 1GB but the limited "Simultaneous connections of 100 devices" is the only limitation I wish Google can remove to support all developer which has personal project without finance support ^.^
Falling in love with the world
Write : 2016-10-17 18:44:42
Last edit : 2016-10-17 18:46:54