# Iphone / android notification with pushback

**URL:** <https://discourse.nodered.org/t/iphone-android-notification-with-pushback/26431>\
**Category:** General\
**Created:** [10 May 2020 13:56 UTC](https://discourse.nodered.org/t/iphone-android-notification-with-pushback/26431 "2020-05-10T13:56:53Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hjorth-Jensen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hjorth-jensen/32/74298_2.png) [@Hjorth-Jensen](https://discourse.nodered.org/u/Hjorth-Jensen)\
**Post date:** [10 May 2020 13:56 UTC](https://discourse.nodered.org/t/iphone-android-notification-with-pushback/26431/1 "2020-05-10T13:56:53Z")

</div>

Hello everyone  
Has anyone tried using [pushback.io](http://pushback.io)?  
It looks very interesting.  
It can be used to send notifications both to Andriod and Iphone, where you can reply back with multi reply options.  
There are several program examples on their website.

[www.pushback.io](http://www.pushback.io)

I'm not the big programmer myself, I could use a little help to get started using this service.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [10 May 2020 18:37 UTC](https://discourse.nodered.org/t/iphone-android-notification-with-pushback/26431/2 "2020-05-10T18:37:34Z")

</div>

@Paul-Reed @afelix

This might be of interest to you too, actionable notifications in iOS as you were talking about that in [this topic](https://discourse.nodered.org/t/telegram-to-ios/25545).

@Hjorth-Jensen

It looks like you can use the [http request node with additional headers](https://cookbook.nodered.org/http/set-request-header) to make this work.

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [10 May 2020 18:51 UTC](https://discourse.nodered.org/t/iphone-android-notification-with-pushback/26431/3 "2020-05-10T18:51:02Z")

</div>

> [@bakman2](#):
>
> This might be of interest to you too

Yes, it looks promising, especially as they have apps for both platforms.  
Thanks.

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [10 May 2020 19:13 UTC](https://discourse.nodered.org/t/iphone-android-notification-with-pushback/26431/4 "2020-05-10T19:13:26Z")

</div>

I’ll check it out some day, thanks 🙂  
I’m currently solving it with a middleman web server forwarding the request body over mqtt where my node-red install is subscribing to.

Interesting note here:

> [@](#):
>
> Caution: Since network conditions are unreliable, a synchronous connection can't be garanteed. In order to get reliable replies from messages consider using [Webhooks](https://pushback.io/docs/webhooks).

So on notifications with synchronous connection and a limit on how many connections you can have open and thus number of concurrent outgoing synchronous notifications you’ve to fall back to webhooks. Which is essentially what I’ve implemented myself already through that middle server. It looks good, but I’m afraid it’s not useful for my situation. I’m behind double NAT and it’s part of a healthcare network so I’m not taking any risks there. MQTT connecting in/out with occasionally ngrok is risky enough for me.

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [11 May 2020 12:18 UTC](https://discourse.nodered.org/t/iphone-android-notification-with-pushback/26431/5 "2020-05-11T12:18:04Z")

</div>

Another thing to consider if you are looking for a low usage 'free' service is that pushback allow 1,000 messages in their free tier, and that's per account, not per month.  
So once you hit 1,000 messages, either you must upgrade to a paid plan, or the service stops.

---

<div class="post-metadata">

**Author:** ![Hjorth-Jensen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hjorth-jensen/32/74298_2.png) [@Hjorth-Jensen](https://discourse.nodered.org/u/Hjorth-Jensen)\
**Post date:** [11 May 2020 13:08 UTC](https://discourse.nodered.org/t/iphone-android-notification-with-pushback/26431/6 "2020-05-11T13:08:56Z")

</div>

It is true that this should be considered.  
But I was thinking that if I could get push messages that I could answer so I could control my cottage, then $ 1 / month was cheap.  
I don't have the knowledge to program it in other ways.

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [11 May 2020 14:21 UTC](https://discourse.nodered.org/t/iphone-android-notification-with-pushback/26431/7 "2020-05-11T14:21:38Z")

</div>

> [@Hjorth-Jensen](#):
>
> But I was thinking that if I could get push messages that I could answer so I could control my cottage,

What device will you be using to receive the message, iOS or Android?  
If iOS, it's worth looking at Pushcut which has lots of options.

Many users here seem to like Telegram (therefore you may get more forum support here, and there is also a Telegram node-RED node)

---

<div class="post-metadata">

**Author:** ![Hjorth-Jensen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hjorth-jensen/32/74298_2.png) [@Hjorth-Jensen](https://discourse.nodered.org/u/Hjorth-Jensen)\
**Post date:** [11 May 2020 17:34 UTC](https://discourse.nodered.org/t/iphone-android-notification-with-pushback/26431/8 "2020-05-11T17:34:50Z")

</div>

I will be using iSO  
I will take a look at Pushcut and telegram. Thanks 👍

---

<div class="post-metadata">

**Author:** ![plainice](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/plainice/32/21866_2.png) [@plainice](https://discourse.nodered.org/u/plainice)\
**Post date:** [13 May 2020 14:48 UTC](https://discourse.nodered.org/t/iphone-android-notification-with-pushback/26431/9 "2020-05-13T14:48:05Z")

</div>

Hey founder of Pushback here,

I've made a simple example you can import into node red [https://gist.github.com/plainice/68276fdaf9014793857af36b6730c2d5](https://gist.github.com/plainice/68276fdaf9014793857af36b6730c2d5)

You'll need to do the following after importing the gist:

- Set the bearer token in the "http request" node.
- Modify the "Set payload" function to have an ID. The ID can be either a User ID or a channel ID.

You can find your Bearer token (access token) and your User ID by going to [https://app.pushback.io/profile](https://app.pushback.io/profile).

You'll be able to get notifications on Android, iOS, and web. The http request is using Pushback's synchronous mode so it will block until you click an action on your phone or computer. That means you don't have to open a port and it works behind any firewall.

I've also included a switch in the gist that shows how you can do different flows depending on which action you choose. You can even have a text field on your push notification which allows a free response.

You can try out Pushback without signing up. I've tried to make creating an account as painless as possible.

Let me know if you any issues or questions!

---

<div class="post-metadata">

**Author:** ![Hjorth-Jensen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hjorth-jensen/32/74298_2.png) [@Hjorth-Jensen](https://discourse.nodered.org/u/Hjorth-Jensen)\
**Post date:** [13 May 2020 16:15 UTC](https://discourse.nodered.org/t/iphone-android-notification-with-pushback/26431/10 "2020-05-13T16:15:32Z")

</div>

Thanks, it took 2 minutes, then it was up and running.  
I'll just play some more with it for the next few days.  
Thanks for the help.

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [13 May 2020 16:33 UTC](https://discourse.nodered.org/t/iphone-android-notification-with-pushback/26431/11 "2020-05-13T16:33:23Z")

</div>

Hi Dan, welcome to the forum & thanks for the personal email & writing up an example gist.

Node-RED indexes useful gists in a [library](https://flows.nodered.org/) which users then generally search, should they need an example of how to do something. If you wish to add your example, please visit [https://flows.nodered.org/](https://flows.nodered.org/), log in & and hit the + button top right. That will guide you and allow your gist to be indexed & publiscised on twitter, slack, etc.

I've just had a quick try of pushback, and do have a few quick questions;

- How do you change the priority alert level sound via the api, for example, low = silent, normal = default sound, urgent = verbose/repeating.
- Can you change how the alert is displayed, for example disappear into the notification bar, remain on screen until a reply is made, etc.

Paul

---

<div class="post-metadata">

**Author:** ![plainice](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/plainice/32/21866_2.png) [@plainice](https://discourse.nodered.org/u/plainice)\
**Post date:** [19 May 2020 14:14 UTC](https://discourse.nodered.org/t/iphone-android-notification-with-pushback/26431/12 "2020-05-19T14:14:35Z")

</div>

Hey Paul,

Thanks for the tips. I'll submit a gist!

Here is the answers to your questions:

- There currently isn't a way to adjust the priority alert level.
- There also isn't a customization of how the notification is displayed.

Probably not the answer you were hoping for. I'll make a note of those features to see if I can add them in the future.

Dan

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [2 June 2020 14:14 UTC](https://discourse.nodered.org/t/iphone-android-notification-with-pushback/26431/13 "2020-06-02T14:14:36Z")

</div>

Closed on 2 June 2020 14:14 UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
