benim pencereler 8.1 telefon uygulaması üzerinde masmavi bildirim göbekten bildirim almak için bu link dün izledi ve çalışma amaBildirim Hub RegistrationAuthorizationException
Ama bugün bana
An exception of type 'Microsoft.WindowsAzure.Messaging.RegistrationAuthorizationException' occurred in mscorlib.ni.dll but was not handled in user code
Additional information: HTTP request failed.
HTTP Details:
Status: 401
Reason: Unauthorized
Full content: <Error><Code>401</Code><Detail>ExpiredToken: .TrackingId:e27f22fb-5c9c-4028-8594-eacb71e5a35e_G1,TimeStamp:4/14/2016 10:29:33 AM</Detail></Error>
Öyle bu hatayı atıyor edildi benim app
private async void InitNotificationsAsync()
{
var channel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();
var hub = new NotificationHub("nameofhub", "myconnectionstring");
var result = await hub.RegisterNativeAsync(channel.Uri);
//Displays the registration ID so you know it was successful
if (result.RegistrationId != null)
{
var dialog = new MessageDialog("Registration successful: " + result.RegistrationId);
dialog.Commands.Add(new UICommand("OK"));
await dialog.ShowAsync();
}
}
Azure'da hangi hizmeti kullanıyorsunuz? Kullanmakta olduğunuz yeni Uygulama Hizmeti konteyneri ise, bunun yerine aşağıdakileri izlemelisiniz: https://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-windows-store-dotnet-get- start-push/ – JTIM