End of Year Sale: 30% off your first year on annual plans. Use code AP5-30-OFF See plans

Turn on push notifications and send a message

Publish and Grow · Dokumentacja AppPresser

Turn on push notifications and send a message

Ten artykuł nie został jeszcze przetłumaczony, dlatego jest wyświetlany po angielsku.

Your app journey: step 8 of 9, Grow your audience. New here? Read Start here: build your app with AppPresser first.

What you'll do: Set up push notifications, turn them on and send your first message. A push notification is a short message that pops up on people's phones, even when your app is closed.

Before you start

The Push Notifications screen

In the left menu, under Configuration, click Push Notifications. The screen has three tabs:

  • Setup: certificates and platform settings.
  • Send: write and send messages.
  • Activity: a history of what was sent, and any errors.

The Push Notifications screen on the Send tab, with the message form on the left and the Audience, Platforms and Segments panel on the right

  1. Click the Setup tab.
  2. Under AppPresser Notifications Key, click Copy key.
  3. In your WordPress admin, open the AppPresser notification settings and paste the key there.

The Setup tab with the AppPresser Notifications Key and Copy key button, the iOS card marked Valid, and the Android card marked Not set up with its Firebase fields

Step 2: Set up iPhone push

On the Setup tab, open the iOS card. Choose how to set it up:

  • Managed (Recommended): the AppPresser team makes your iPhone certificates for you. Click Request certificate setup. This is an add-on service with a fee for each certificate setup, shown on the card. Someone from the team contacts you within 1 to 2 business days.
  • Manual: use your own certificates.

The iOS card with the Managed and Manual choices and the Request certificate setup button, and the Android card with the Firebase sender ID box and two upload boxes

If you choose Manual ("Use your own certificates"):

  1. Under Push certificate .p12, click Upload .p12 certificate and choose your push .p12 file.
  2. Under Provisioning profile .mobileprovision, click Upload provisioning profile and choose your .mobileprovision file.
  3. In Certificate password, type the password for your push .p12.
  4. Click Save changes.
  5. Click Deploy iOS push config. Saving does not deploy your push config.

Good to know: Changes to these build files also need a new app build.

Make your own iOS certificates and profiles (step by step) shows each screen.

Step 3: Set up Android push

Android push uses Firebase, Google's app service. You need a Firebase project for your app.

  1. On the Setup tab, click the Android card to open it.
  2. In Firebase sender ID, paste your sender ID. You find it in Firebase under Project settings, then Cloud Messaging.
  3. Under Firebase app file, click Upload google-services.json and choose that file from Firebase.
  4. Under Service account file, click Upload service account file and choose your Google Cloud service account file (a .json file).
  5. Click Save changes.
  6. Click Deploy Android push config. Saving alone does not turn on your Android settings. Deploying does.

Careful: If you upload a new google-services.json file, make a new Android build too. See Build your iOS and Android apps (Builds tab).

Step 4: Turn push notifications on

  1. At the top right, find the Enable Push Notifications switch.

    The Setup tab of the Push Notifications screen with the Enable Push Notifications switch turned off at the top right

  2. Click it to turn it on. It saves by itself and shows Push notifications enabled.

The Push Notifications Setup tab with Enable Push Notifications turned on and the Push notifications enabled message

Good to know: On the right of the Send tab, under Platforms, iOS shows Valid when your certificate is good. Valid does not mean push is on, so always check that the switch is on too.

Step 5: Write and send a message

  1. Click the Send tab.
  2. In Title, type a short title of up to 50 characters.
  3. In Message, type your message of up to 200 characters.
  4. If you want, add an Open URL, a web page that opens when someone taps the message.
  5. If you want, choose an Open Page, a page in your app that opens when someone taps the message.
  6. Under Audience, keep All Subscribers to send to everyone. Subscribers are people who allowed push notifications from your app.
  7. Read Delivery destination to confirm who will get the message.
  8. Click Send Notification.

Careful: Messages are real. Everyone in the audience gets them right away.

See who gets your messages

The right side of the Send tab shows your Audience:

  • The total number of subscribers.
  • The number of subscribers on iOS and on Android.
  • Your Segments.

Click Refresh to update the numbers.

Send to only some people (segments)

A segment is a group of people who chose a topic, like "News" or "Events".

Segments come with the Professional and Advanced plans.

  1. On the Send tab, under Segments, click + New.
  2. Type a name for the segment, for example Sports. Letters and numbers work best.
  3. Click Create, or click Cancel to stop.

The Segments card with a new segment name box, and the Cancel and Create buttons

When you send a message, choose the segment under Audience.

To let people choose their segments in your app, add the Let people choose their push topics (Segmented Push Notification Settings block) to a page.

Check what was sent

  1. Click the Activity tab.
  2. At the top, check how many sends were Successful and how many had Warnings or Errors.
  3. Under Recent Activity, read the list of sends and setup problems.
  4. Click Refresh to update the list.

The Activity tab with Successful, Warnings and Errors counts and the Recent Activity list, which says No push log entries yet

You can also see push messages on the Check your app logs (Logs) screen.

You're done when your message shows on a test phone.

Next step

Let people choose their push topics (Segmented Push Notification Settings block)

Czy to było pomocne?

Nie mogą Państwo znaleźć?

Nasz zespół wsparcia pomoże w konfiguracji, buildach i sprawach sklepów z aplikacjami.