How to Work With it
Initialization
Follow the steps of this tutorial to configure your instance:
https://community.intersystems.com/post/firebase-cloud-messaging-irisfirebase-fcm
Send Message to Token ID:
##class(Firebase.FCM).Send(appName, token, title, body, image, data)
Save Token:
##class(iFirebase.FCM).SaveToken(appName, token, id)
Send Message to Saved ID:
##class(Firebase.FCM).SendMessageToId(appName, id, title, body, image, data)
Clone/git pull the repo into any local directory e.g. like it is shown below
(here I show all the examples related to this repository, but I assume you have your own derived from the template):
$ git clone https://github.com/daniel-aguilar-garcia/irisfirebase
Open the terminal in this directory and run:
$ docker-compose up -d --build
Follow the steps of this tutorial to configure your instance:
##class(Firebase.RTDB).Create(“appName”,objData,“tableName”,id)
##class(Firebase.RTDB).Update(“appName”,“tableName”,id,.objTest)
##class(Firebase.RTDB).Read(“appName”,“tableName”,id)
##class(Firebase.RTDB).ReadTable(“appName”,“tableName”)
##class(Firebase.RTDB).Delete(“appName”,“tableName”,id)
##class(Firebase.RTDB).Delete(“appName”,“tableName”)