我正在开发一个WP-8.1 Silverlight应用程序,并试图通过天蓝色的通知中心注册我的应用程序用于WNS通知服务,但我正在为MPNS注册 代码中没有错误建设和已在WMappmanifest在通知中心更改通知服务WNS也已经更新凭据仍然当我看到在通知中心我的注册就说明MPNS不WNS注册为MPNS而不是WNS
var channel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();
var hub = new NotificationHub(AzureNotificationHubName,AzureNotificationHubCnxString);
var result = await hub.RegisterNativeAsync(channel.Uri);
// Displays the registration ID so you know it was successful
if (result.RegistrationId != null)
{
PushChannel = channel;
PushChannel.PushNotificationReceived += OnPushNotification;
}
这有什么更新?即时通讯有同样的问题... –