A Quick Guide to Sending Push Notifications

Being able to send Push Notifications to users is one of the fundamental capability in an enterprise mobile app. Appery.io platform comes with Push Notifications component out-of-the-box and allows you quickly to send targeted messages to iOS and Android devices. In this blog post we will show the four ways to send a Push Notification message to a user:

  1. Push Notifications Console.
  2. Server Code Push Notifications API (server-side).
  3. Push Notification REST API.
  4. Customer Console.

Push Notifications Console

This first option is probably the simplest way to send a Push Notifications once you have installed an app on a device. Select device types, enter the message and send. The Push Notification message should arrive on the registered device instantly.


Push Notifications console.


Continue reading “A Quick Guide to Sending Push Notifications”

What is Appery.io Push Notifications?

Push Notifications is one of the core components in Appery.io platform and allows you to send Push Notification messages to users who installed your app.

You can send a Push Notification message to all users and also send a targeted message only to particular users. Here are some examples of sending a targeted Push Notification message:

  • Send Push Notification message to users who want to get news about basketball. Send a different message to users who want to get news or updates about travel.
  • Send a Push Notification message to just one user/device.
  • Send a Push Notification message to users who are located in specific geographic area.
  • Send a Push Notification message only to Android or iOS devices.

There are many other options for sending a targeted message, these are just some examples to give you an idea what can be done.

When a Push Notifications is enabled in a particular app, the first time the app launches, the device will register in the Appery.io database special Devices collection. This collection is used to send targeted Push Notification messages.

Thera are many options to customize the actual Push Notification message. Here are some properties you can set:

  • Sound to play when this Push Notification message is received.
  • Badge number to show in the upper right corner of the app icon (iOS only).
  • Custom actions when a Push Notification is received.
  • Set custom icons.
  • There are many more options covered in the documentation.

A Push Notification message can also be scheduled to be sent in the future.

A Push Notification message can be sent from the developer console. It also has REST API which means a message can be send from an app. For example, you can build an admin type app which is used to send a Push Notification to all your users without needed access to the developer console.

Push Notifications is also integrated with Server Code. This means you can easily send a message from a Server Code script.

Here is another example using the Database, Server Code and Push Notifications.

  1. Runs Server Code script once a day to check the inventory saved in the database
  2. If the inventory is below some level, in the script send a Push Notification message to the manager to let her know about low inventory.

We have a number of short videos on sending messages on our YouTube channel here and here.

Happy coding.

How to Send Push Notification Messages with the Appery.io Platform

This webinar recording covers sending Push Notifications with the Appery.io platform. The video covers:

  • Sending Push Notifications from the dashboard
  • Sending targeted Push Notifications with channels
  • Scheduling a Push Notification
  • Using Push Notifications REST API to subscribe to particular targeted messages
  • Using Server Code script to send Push Notifications

Learn more from our backend services videos.

How to Send a Push Notification from Server Code Script in One Line of Code

Appery.io Server Code allows to quickly write any custom app logic using JavaScript and expose is via a REST API. Here is an example invoking Uber API, and example accessing the cloud database and scheduling the script to run periodically.

Screen Shot 2015-10-28 at 9.33.31 PM
Sending push message

Continue reading “How to Send a Push Notification from Server Code Script in One Line of Code”

Building a Barcode Scanner App with Backend Services

This video shows how to build a barcode scanner and covers:

  • Using the barcode scanner
  • Using cloud database to store and search for scanned products
  • Using server script for:
    • Searching the database to find products that have low inventory
    • Sending a push message to notify of low inventory
    • Sending an email (SendGrid API) to notify of low inventory
  • Scheduling server script (job) to run periodically to check for low inventory and perform the actions above

Build a Mobile App with Push in 5 Minutes (Android version)

This video shows how to create an app with push notifications for Android in 5 minutes.

Check out other Build in 5 Minutes videos.