• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    How - HTTP publisher to Firebase Cloud Messenger?

    How-To
    2
    4
    1.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      Balistar
      last edited by

      Hi, does anyone know the correct HTTP Sender properties to POST datapoints to Firebase Cloud Messenger?

      I am stuck.

      1 Reply Last reply Reply Quote 0
      • phildunlapP
        phildunlap
        last edited by phildunlap

        Hi Balistar,

        The HTTP Publisher was not crafted for Firebase, so you may have some hurdles trying to get that working.

        Have you considered the HttpBuilder in the scripting environment? This way you can authenticate if need be, but it would enable you to do something like...

        HttpBuilder.post("sptth://firebase", 
          { "authenticationHeader": "value!" },
          {
          "message":{
            "token" : "bk3RNwTe3H0:CI2k_HHwgIpoDKCIZvvDMExUdFQ3P1...",
            "notification" : {
              "body" : "This is an FCM notification message!",
              "title" : "FCM Message",
              }
           }
        }).err(function(status, headers, content) {
          throw content;
        }).resp(function(status, headers, content) {
          /* Do any work you need for successful responses */
        }).execute();
        

        Edit: Here's a thread with a little more fleshed of a script example using that utility: https://forum.infiniteautomation.com/topic/2999/intesis-integration/2

        1 Reply Last reply Reply Quote 0
        • B
          Balistar
          last edited by Balistar

          Thanks Phil,

          HTTP Publisher actually works perfectly for Firebase. Took some playing with Postman, but it turns out to be easy..

          0_1513469357051_Image 1.jpg

          But using HttpBuilder in a script is a lot more flexible.

          1 Reply Last reply Reply Quote 0
          • phildunlapP
            phildunlap
            last edited by

            Nice, good to know! Thanks for sharing!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post