• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

NodeRed Ubports push notification support?

Scheduled Pinned Locked Moved App Development
iotnotificationsnodered
5 Posts 3 Posters 655 Views 2 Watching
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.
    • P Offline
      poVoq
      last edited by poVoq 12 Feb 2019, 01:16 1 Dec 2019, 15:53

      I am looking for someone to help implementing a Ubports push notification system for the really cool flow automation system NodeRed (very commonly used in home automatisation on a RasberryPi): https://nodered.org/

      There is already an existing node for Apple and Google push notifications, which could be extended:
      https://flows.nodered.org/node/node-red-contrib-push
      https://github.com/Xzya/node-red-contrib-push

      Ubport's push notification system is documented here:
      http://docs.ubports.com/en/latest/appdev/guides/pushnotifications.html
      and seems quite similar to existing systems.

      I am a bit out of my current level of expertise to do this myself, so help would be much appreciated.

      Fairphone 5 (waiting for port)

      1 Reply Last reply Reply Quote 0
      • K Offline
        Krille
        last edited by Krille 12 Jan 2019, 17:18 1 Dec 2019, 17:17

        Hey, feel free to ask me if you have explicit questions. I dont have much time but will try to answer as soon as possible. First would be that you make your app ready to receive Push Notifications described in the guide in the docs and then you can send them with a http request similar to Google Firebase. The json fields just need to get other names and thats it.

        Btw in the openstore you find the app PushClient where you cann see a minimal working example to use the UBports Push Service

        1 Reply Last reply Reply Quote 2
        • P Offline
          poVoq
          last edited by 2 Dec 2019, 01:11

          Thanks lot for the offer to help answering questions, but after having looked a bit at the code in question, I really don't think I would be able to do it my self (even with some help).

          I could probably help with bug-fixing and testing, but the main bulk would have to be done by someone who actually knows what they are going 😞

          Fairphone 5 (waiting for port)

          1 Reply Last reply Reply Quote 0
          • F Offline
            flohack
            last edited by 2 Dec 2019, 21:05

            Are you sending those pushes from outside a UT device? The push server only needs to receive 1 HTTP request with the right data, and your App needs to register for push, take the token from that result and send it to your server. This is not so hard to do, you will find examples with other Apps as krille mentioned, and sending an HTTP push message is something you can also copy from the internet.

            BR

            My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

            P 1 Reply Last reply 2 Dec 2019, 21:27 Reply Quote 0
            • P Offline
              poVoq @flohack
              last edited by 2 Dec 2019, 21:27

              @Flohack Yes the overall system seems quite easy, but the devil lies in the details. Starting from scratch would be reinventing the wheel when there are those nice existing NodeRed nodes. But they reference further NodeJS libraries and while all of that is probably not a big deal for an somewhat experienced Javascript developer, I am somewhat lost looking at it πŸ˜•

              Fairphone 5 (waiting for port)

              1 Reply Last reply Reply Quote 0
              2 out of 5
              • First post
                2/5
                Last post