Exportera (0) Skriv ut
Visa allt
EN
Det här innehållet finns inte tillgängligt på ditt språk men här finns den engelska versionen,

Configure push notifications

Updated: April 2, 2014

Windows Azure Mobile Services integrates with Azure Notification Hubs to send push notifications to your apps. You must enable Notification Hubs integration in a JavaScript backend mobile service to support additional push notification functionality, such as templates, multiple platforms, and scale. Click Enable Enhanced Push to start using Notification Hubs. The notification hub that you create is free with your mobile service, can be managed independent of the mobile service, and can be used by other applications and services. For more information, see the Notification Hubs page.

ImportantImportant
Once the new notification hub has been created, the integration process cannot be reverted.

A .NET backend mobile service always uses Notification Hubs. When you create a new .NET backend mobile service, a new notification hub is created for you.

Notifications themselves are sent from your backend code. The way that you configure and send push notifications depends on your app.

Windows Store: You can send push notifications to a Windows Store app by using the Windows Push Notification Service (WNS). To send push notifications to your app, you must configure your mobile service to work with WNS. Do this by entering the Client Secret and Package SID values provided by WNS when you register your app with the Windows Store. For more information, see Get started with push notifications (C# / JavaScript).

Windows Phone: Mobile Services sends push notifications to a Windows Phone app by using the Microsoft Push Notification Service (MPNS). Mobile Services does not require you to register your Windows Phone app to send push notifications. This is because authentication is not required by MPNS when you send less than 500 messages per user each day. For more information, see Get started with push notifications.

iOS: Mobile Services sends push notifications to iPhone and iPad apps by using the Apple Push Notification Service (APNS). To send push notifications to your app, you must configure your mobile service to work with APNS. Do this by generating a special push notification certificate at the iOS Provisioning Portal and then uploading the exported certificate (.p12) file by clicking the Upload button. For more information, see Get started with push notifications.

Android: You can send push notifications to Android apps by using the Google Cloud Messaging (GCM) service. To send push notifications to your app, you must configure your mobile service to work with GCM. Do this by entering the API Key value provided by GCM when you registered your app at the Google APIs website. For more information, see Get started with push notifications.

Visa:
© 2014 Microsoft