Using App Services, you can add support for push notifications to your mobile app. With push notifications, you can:
- Ping your app's users with messages they care about. This could be a flash sale happening near them right now (use App Services geolocation!) or a lunch special at a favorite restaurant. You could even let a user know it's her turn in a game she's playing with a friend.
- Keep your app footprint low while communicating in a high-value way with your app's users. Compare pushing data with CPU- and memory-heavy pull processes. In those, an app actively listens on an endpoint, regularly pulling data (such as news feeds, new emails, or stock market updates) to the device.
Be sure to check out the answers about push notifications in FAQ: App Services.
Apigee App Services provides a RESTful framework for sending push notifications to your apps, giving you full control over which app users you target, as well as when you send notifications. You can send messages to devices, users, or groups that have specific characteristics and locations. (To receive push notifications, users must be using devices that can connect to App Services.)
At run time, the push notifications framework integrates your app with App Services and push notification services. This ensures that your notification messages are routed to the users you want to receive them. When you send a push notification via App Services, the notification goes to a notification service for the mobile platform you're sending to, and the service forwards the notification to client devices.
The following diagram illustrates the basics of how this works.
- Your app registers a device with App Services and push notification services, receiving credentials for use when sending notifications. This makes the services aware of the devices on which your app is installed, allowing you to target those devices with push notifications.
- App Services notifiers you create send notification requests to notification services, using your app's credentials to authenticate. A notifier is an App Services entity that you create to carry messages to notification services.
- Push notification services forward your notifications to the targeted devices.
To get started, see Adding push notifications support.