PushNotificationChannel channel = null; try { channel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync(); if (channel != null) { var notificationUri = channel.Uri; var expiration_time = channel.ExpirationTime; } channel.PushNotificationReceived += channel_PushNotificationReceived; } catch (Exception ex) { if (ex != null) { System.Diagnostics.Debug.WriteLine(ex.HResult); } }