Open knvpk opened 7 years ago
Hi, anybody there?
Hi, do you have a proposal for what you want to see added exactly?
Add a function in firebase.android.ts
file with code below
var fm = com.google.firebase.messaging.getInstance();
var RmtMsg=new com.google.firebase.messaging.RemoteMessage.Builder(SENDER_ID + "@gcm.googleapis.com")
.setMessageId("randomlygeneratedstring")
.addData("my_message", "Hello World") //settting from arguments
.addData("my_action","SAY_HELLO") //settting from arguments
.build()
fm.send(RmtMsg);
AS FCM also supports XMPP connection for upstreaming messages, it would be nice to handle that one in this plugin and provide an API to send message from client (APP) to FCM servers.