App Center Push
The Visual Studio App Center Push (ACP) service enables app producers to engage with their users outside of the standard, in-app experience. Once a developer adds the App Center SDK [link] to an application, developers, marketers, and automated processes can send notifications to devices running the application.
Configuring App Center for Push Notifications
Configuring Push for your application project is as simple as:
- Sign-up for a free App Center account at https://appcenter.ms.
- Create a new application project (what we call an App in App Center) or open an existing App project.
- Select the Push option in the project navigation pane.
- Configure any required settings for your app’s target platform. For example: a. Apple iOS devices use the Apple Push Notification service (APNs) to deliver notifications, you’ll have some configuration to do in APNs to enable Push in App Center. b. Google Android devices use the Firebase Cloud Messaging (FCM) service to deliver notifications, so you’ll have some configuration to do in FCM to enable Push in App Center. c. Windows devices use the Windows Notifications Services (WNS) to deliver notifications, so you’ll have some configuration to do in WNS to enable Push in App Center.
- Copy the appropriate notification service settings into your App Center App project.
For additional information, refer to Configuring the Push Service.
Configuring Your Application for Push
To configure your application to handle push notifications, you’ll add the App Center SDK to your application to manage device registration, then write the code needed to process notifications when they arrive. The instructions for doing this varies depending on the target platform. For additional information, refer to the App Center Push SDK platform documentation:
- Android Push SDK documentation
- iOS Push SDK documentation
- macOS Push SDK documentation
- React Native Android Push SDK documentation
- React Native iOS Push SDK documentation
- UWP Push SDK documentation
- Xamarin Android Push SDK documentation
- Xamarin iOS Push SDK documentation
- Xamarin Forms Push SDK documentation
App Center Push can’t just push to any device. When a user runs your Push-enabled app for the first time after installation, the App Center Push SDK initializes and automatically registers the device running the application with the appropriate notification services. The SDK then provides App Center with the unique key (Install ID) it uses to send notifications to the device.
As you'll see later, you can use the Install ID to send a notification to a specific device.
Sending Push Notifications
With the Push service configured, and devices running your application registered with the proper notification services, you’re ready to send notifications to devices. You can send notifications to devices two ways:
App Center supports the following notification targets:
- All registered devices: Sends notifications to all registered devices.
- Custom devices list: Sends notifications to up to 20 devices (using the install IDs for the target devices).
- Audiences: Sends notifications to a segment of your app's registered device audience based on a set of device and custom properties.
For additional information, refer to Sending Push Notifications.
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.