private void sendPush(string title, string description) { FireBasePush push = new FireBasePush(Globals.FIREBASE_SERVER_KEY); push.SendPush(new PushMessage { to = "/topics/news", notification = new PushMessageData { title = title, text = description, click_action = "click_action" }, data = new { title = title, text = description } }); }
private void sendPush() { var deviceId = CrossDeviceInfo.Current.Id; // Fetches the unique device Id... FireBasePush push = new FireBasePush(Globals.FIREBASE_SERVER_KEY); push.SendPush(new PushMessage { to = "/topics/news", notification = new PushMessageData { title = "Dance", text = "Event Started", click_action = "click_action" }, data = new { example = "this is a example" } }); }