Skip to content

A push campaign

This tutorial sends a marketing push to a group of people. First you connect your app’s Firebase project. Then you set your limits, write the push, and see how it did.

PurrCRM sends your app’s pushes itself, through your own Firebase project.

Before you start: your app must register each phone for pushes. Your developer sets this up once (Flutter, iOS, Android). A push can only reach a phone that registered.

Go to Settings › your app › Delivery › Push.

  1. In the Firebase console, open your app’s project.
  2. Go to Project settings › Service accounts and press Generate new private key. A file ending in .json downloads.
  3. Back in PurrCRM, press Add the key on the Firebase key card.
  4. Choose the file you downloaded, and press Save.

The card now shows your Firebase project and its service account. To swap the key later, press Replace the key.

iPhones use the same key. They are reached once your Firebase project has your Apple push key.

To check it works, press Push my phones under Send a test push. This sends a push to the phones you added under Testing › Preview on my phone.

The Push tab of Delivery, with a Firebase key addedThe Push tab of Delivery, with a Firebase key added
The Push tab of Delivery, with a Firebase key added

Go to Settings › your app › Messaging rules.

These limits decide how much marketing one person gets. Service pushes, such as “your order has shipped”, are never held back by them.

On the Push limits card:

  • Marketing pushes a day: the most marketing pushes one person gets in a day.
  • Quiet from and Quiet until: no marketing push arrives in these hours. A push due then waits until they end. The hours follow each person’s own time zone.

On the Frequency cap and holdout card:

  • Frequency cap: at most so many marketing messages a day or a week, on one channel or on all of them. Press Add a rule to add one.
  • Holdout: tick Hold some contacts out of all marketing. Those people get no marketing at all, so you can measure what your marketing adds.

When you change something, a bar appears at the bottom of the page. Press Save to keep your changes, or Discard to undo them.

Messaging rules, with the Push limits and Frequency cap and holdout cardsMessaging rules, with the Push limits and Frequency cap and holdout cards
Messaging rules, with the Push limits and Frequency cap and holdout cards

Go to Messages.

  1. Press New message and choose Push.
  2. Give it a Name that your team will recognise.
  3. Write a Title and the Words.
  4. Under Opens, choose where a tap takes people: a place in your app, or a web page. Leave it empty, and the push Just opens the app.
  5. To personalise it, press Insert attribute.
A new push in the editorA new push in the editor
A new push in the editor

Who step

  1. Choose A segment, such as “Gold members”.
  2. Under Consent, choose Marketing, and pick its Topic, such as Offers.

The count shows who can get it, for example “40 match · 12 can get this push”. The chips under it say why the others can’t:

ChipWhat it means
In the global holdoutThey are in your holdout group.
No consent for marketingThey have not agreed to this topic by push, or they turned offers by push off.
No device for pushesThey never registered a phone for pushes, or they turned notifications off.

When step

Choose Once, now or at a time. Leave the time empty to send it as soon as it goes live, or set a time.

Under Days and times, choose the days and hours it may arrive. The push goes out in each person’s own time zone.

  1. Press Try it on my test phone to get the push on your own phone.
  2. Press Go live.

Messages › your push › Report

The report shows how many pushes were sent, delivered and opened, and how many people reached the goal.

The Messages list shows every message with Sent, Opened %, Clicked % and Goal % columns. Press a column’s name to sort by it.

The Messages list, with its Sent, Opened %, Clicked % and Goal % columnsThe Messages list, with its Sent, Opened %, Clicked % and Goal % columns
The Messages list, with its Sent, Opened %, Clicked % and Goal % columns
  • Look at the push’s Report. Then look at Recent failures on Settings › your app › Delivery › Push. Both say what went wrong, such as a key Firebase refused.
  • Open the person’s contact record. It lists their devices, and their consent for each topic and channel.
  • On Android, check the channel name. A push sent to a channel your app has not created arrives silently, or in the wrong place.