Managing Subscribers in Pushed

subscribers, manage, invite

Pushed offers a very powerful subscription management system so you can handle subscriptions in your apps and channels. We call it Members-Only feature, and it is meant to easily manage subscriptions in Pushed.

Managing subscribers is a feature available in Pro and Enterprise plan.

First of all, to enable Members-Only feature you must set your app or channel as Private (in settings), and then toggle the Members-Only switch:

Once you have enabled Members-Only feature you will gain access to the Manage Subscribers features:

In this screen you can perform all the operations related to managing subscribers: invite a user, remove a user or check an invitation.

Inviting Users

Inviting subscribers is really easy. We will cover two ways of doing it (using the web application and programatically using our API). Once the user is invited he will receive an email message and a Pushed notification. Once the users accepts the invitation, the user will be shown in the Subscribers tab.

To invite a user using the web application all you have to do is to Pending Invitations and click in Invite New User, the following modal window will be shown:

In the modal window you can specify one, or multiple emails (separated by commas).

If you want to invite user programmatically using our API, here's the documentation of the request you can use. Additionally, you can find a sample of the API request here.

curl -X POST -s \
  --form-string "app_key=your_app_key" \
  --form-string "app_secret=your_app_secret" \
  --form-string "source_type=your_source_type" \
  --form-string "source_alias=your_app_or_channel_alias" \
  --form-string "emails=emails_list_comma_separated" \
  https://api.pushed.co/1/subscription/invite

Removing Subscribers

If you want to remove a subscriber, you can do it any time in the web application, at the red button :

Or you can also use our API endpoint:

curl -X DELETE -s \
  --form-string "pushed_id=user_pushed_id" \
  --form-string "api_key=user_api_key" \
  --form-string "subscription_alias=alias_of_the_subscription" \
  --form-string "subscription_email=email_of_the_subscription" \
  https://api.pushed.co/1/app/subscription

Checking Invitations Status

If the invitation has been accepted, it will appear in the Subscribers tab, otherwise it will be visible in Pending Invitations tab.

Sending notifications to subscribers

After the use has accepted the invitation, you can send him notifications directly using the "Send Notification" button as shown below:

Or using the specific endpoint in our API, here's a sample request:

curl -X POST -s \
  --form-string "app_key=your_app_key" \
  --form-string "app_secret=your_app_secret" \
  --form-string "target_type=subscription_alias" \
  --form-string "content=Your notification content." \
  --form-string "subscription_alias=alias_of_the_subscription" \
  https://api.pushed.co/1/push

If you have any more question, please do not hesitate contacting us.

Targeting users in Pushed

Pushed can be used to send messages to a large amount of users, that is pretty straightforward to understand. If you create an app or channel in Pushed and people subscribes to it, once you send a message everyone will receive that message. But, ¿what if you want to specifically target a user?

Depending on which target you want to reach for your notifications, you will use different type of targets:

  • app: Send a notification to all subscribers of an app.
  • channel: Send a notification to all subscribers of a channel.
  • user: Send a notification to an specific user specifying user alias (OAuth required).
  • pushed_id: Send a notification to an specific user specifying Pushed ID.
  • email: Send a notification to an specific user using its email (registered in Pushed).

Today we will cover the specifics of targeting individual users using our API. Remember that in all scenarios, the user must be subscribed to your app or channel in order to be able to send him notifications.

Using Email

Email is the easiest way to target an specific user. To do so you only need the email of the user (the email must match the user's Pushed account). This basically means that the email the user used to sign up with Pushed must match the one you specify. In order to use email targeting, the following points must be comply:

Using OAuth

The integration between your system (in this case the shop and Pushed) it's done with OAuth authentication. This allows the integration between Pushed and any other service. Once the user has been authenticated in Pushed, you will receive an access_token that needs to be used in the API call.

  • Add target_type = user and access_token = the_access_token to the push API request.
  • The user must be subscribed to your App or Channel (because you requested authorisation, you can programmatically subscribe the user to your app or channel).

Using PushedID

This target can be used in a wide variety of situations.

The most common are third party integrations and physical interaction integrations.

Third Party Integrations

PushedID provides a very direct and easy way to target users in Pushed. An example will be handy in this case. Bugsnag, an error monitoring platform, allows you to send a push notification to Pushed every time there's a new issue in your project. The configuration is very easy, to do so you only need to add your PushedID in Bugsnag's site and enable the integration:


Physical Interaction

Let's make an example. Imagine you run a restaurant and a new customer comes in. Unfortunately the restaurant is at its full capacity, but a table is finishing soon. Instead of making your customer wait for an unpredictable amount of time, you use Pushed to let him know when the table is ready. Because the user it's at the same physical place, you can use PushedID to gain permissions for sending notifications to the user (the user will be able to unsubscribe at any time). This would be the process:

  • You show the customer the QR subscription code from your App or Channel and the customer subscribes to it using the Scan QR option in Pushed.
  • Once the customer is registered, we need his  goes to Account and opens the PushedID option. This will display a QR code you can scan to copy the PushedID of the customer.
  • You use that PushedID to send him a notification once the table is ready (available in API or web).

Pushed for iOS v1.9.3 Release Notes

Hi everyone!

Today we’re glad to introduce our Pushed app for iOS v1.9.3


This new release includes several updates, upgrades and also few bug fixes. 

Among the list:

  • iOS Dark Mode support: Pushed now supports Dark Mode
  • iOS 13 upgrades
  • Layout redesign: Discover and Activity has been deprecated to offer a simpler user experience

Android App Issues - 15/12/2020

Since yesterday, followed by a major API upgrade in Pushed, Pushed Android app has been experiencing issues that prevents users using the app normally. Our development team is working to fix the issue as soon as possible. We will be updating the status in getpushedapp and this post.

  • 08:25 (European CET): Pushed Android app fails to load.
  • 11:36 (European CET): We have identified and fixed the issue. Android app should be working as usual.

Pushed in the Real World: Envoyer deployments

This week we feature a simple yet handy real world integration that will be very useful for people using Laravel’s Envoyer service. For those who are unfamiliar with it, Envoyer is a service that allows you to deploy PHP and Laravel applications without any downtime.

We’re quite big fans of Laravel, in fact, Pushed website is built with Laravel, so this is an integration we use ourselves every day.

The goal of this integration is simple: to make Envoyer notify us each time a deployment starts and finishes. To do so we will take advantage of Envoyer’s Deployment Hooks feature, that allow us to trigger action on every stage of the deployment process. We will add push notifications in two actions:

  1. At the beginning of the deployment
  2. Once the deployment has finished

(but feel free to add as many as you like).

To enable push notifications in Pushed for every Envoyer deployment just follow this simple steps:

Open “Deployment Hooks” and click on “+ Add Hook”, a modal window will appear:

image

Then all you have to do is to insert the bash script:

curl -X POST -s \
 –form-string “app_key=” \
 –form-string “app_secret=” \
 –form-string “target_type=” \
 –form-string “target_alias=” \
 –form-string “content={{ project }} deployment started {{ branch }} ({{ author }}).” \
 https://api.pushed.co/1/push

Note we use special Envoyer’s variables.

That’s all! Now we will receive Pushed notifications on each Envoyer deployment.

Using email to reach your subscribers

In a continuous effort to make Pushed easier to use for our customers, we have enabled a new target_type that will enhance user targeting.

If you need to send a notification to a certain user, you now have three options: using email, PushedID or OAuth token

It is pretty simple to explain :) If you know the email of the user that is subscribed to your channel, you can directly send notifications to them using the following request:

curl -X POST -s \   

–form-string “app_key=your_app_key” \   

–form-string “app_secret=your_app_secret” \   

–form-string “target_type=email” \   

–form-string “email=john@doe.com” \   

–form-string “content=Your notification content.” \

https://api.pushed.co/1/push

In our docs, you can find multiple examples of sending a push message using user-based targets.

Happy pushing!

Pushed in the Real World: Zombie Detecting Smart Security Owl

It’s been a while since our latest post here in our blog. We mainly used it to announce technical announcements and few more things. This is going to change dramatically, and today we want to announce a new series called “Pushed in the real world” where we will showcase real applications of Pushed of people not related to use that uses Pushed to make incredible things.

This week we would like to feature T3ch Flicks channels both educational and funny video on “how they put a super spooky twist on a mundane household classic: the security camera”.

In the video, they will show you how to make a night vision owl which uses image processing to track people. Once they track down someone, the owl will send you a notification through Pushed to let you know someone is there!

As they say: “If you want to keep an eye out for approaching zombies on Halloween or just check your garden the rest of the year-round, this is the one for you. Security doesn’t have to be boring to be effective!

Here you have full instructions on how to do it yourself:

https://www.instructables.com/id/Smart-Security-Owl/

Hope you like this project, this is exactly why we built Pushed, so users can have a very simple way of getting notifications without the hassle of developing an app!

See you in the next edition of Pushed In The Real World!

Infrastructure upgrades: 2018-03-17 00:30 UTC

Start: 2018-03-17 00:30 UTC

End: 2018-03-17 02:30 UTC

Hello,

As you may have noticed, this is the second major upgrade and hopefully will be the latest time we experience downtime while updating our systems. With these upgrades we will be able to provide consisten performance and zero downtime on our service even though some parts of our infrastructure goes down.

During the above window the development team will be performing important infrastructure upgrades. This is upgrade is required to ensure optimal performance of the Pushed infrastructure and enable new features and more notifications throughput in the future.

Expected Impact: The impact of this upgrade will affect all Pushed services, therefore, API, Site and mobile applications will be offline during the upgrade.

Approximately 30 minutes prior to the maintenance we will post an update on twitter.com/getpushedapp and periodic updates will follow as work progresses.

Do not hesitate to contact support if you have any additional questions or concerns. You may do so by opening a ticket, or by replying to this email.

Thank you,

Pushed Development Team

Pushed for iOS v1.8.2 Release Notes

Hi everyone!

Today we’re glad to introduce our Pushed app for iOS v1.8.2

This new release includes several updates, upgrades and also few bugfixes. Among the list:

- iPhone X native support: Pushed now supports iPhone X layout.

- iPad Support: Pushed now supports iPad (all versions) layout.

- iOS 11 upgrades (the new operating system introduced lots of changes and Pushed app has updated it’s code in order to achieve optimal performance).

- Upgraded registration of the devices to ensure connectivity.

In the upcoming weeks we’ll also release a major update to support iOS rich notifications. A long overdue update that will take place this month.

Infrastructure upgrades: 2018-03-03 00:00 UTC

Start: 2018-03-03 00:00 UTC

End: 2018-03-03 03:00 UTC

Hello,

During the above window the development team will be performing important infrastructure upgrades. This is upgrade is required to ensure optimal performance of the Pushed infrastructure and enable new features and more notifications throughput in the future.

Expected Impact: The impact of this upgrade will affect all Pushed services, therefore, API, Site and mobile applications will be offline during the upgrade.

Approximately 30 minutes prior to the maintenance we will post an update on twitter.com/getpushedapp and periodic updates will follow as work progresses.

Do not hesitate to contact support if you have any additional questions or concerns. You may do so by opening a ticket, or by replying to this email.

Thank you,

Pushed Development Team

Support

If you can’t find what you’re looking for in the documentation, please contact us.