HttpNotificationChannel Constructor (String, String)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Creates a notification channel. Use this constructor with an authenticated web service. The application will identify the notification channel using the channelName value. The serviceName value identifies the Subject Name of the authenticated web service's certificate.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Parameters
- channelName
- Type: System.String
The name that the application uses to identify the notification channel instance.
- serviceName
- Type: System.String
The name that the web service uses to associate itself with the Push Notification Service.
Use the fully qualified domain name (FQDN) as the service name. While this is not required for unauthenticated web services, it is a best practice. For authenticated web services, this FQDN must match the registered certificate’s subject name (the CN attribute). For example, www.contoso.com.
For more information about authenticated web services, see Setting up an authenticated web service to send push notifications for Windows Phone 8.