Esempio n. 1
0
        async void Channel_PushNotificationReceived(Windows.Networking.PushNotifications.PushNotificationChannel sender, Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs args)
        {
            if (args.NotificationType == Windows.Networking.PushNotifications.PushNotificationType.Toast)
            {
                var root   = args.ToastNotification.Content.DocumentElement;
                var launch = root.GetAttribute("launch");

                await dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
                {
                    UpdateDeviceText(launch);
                });
            }
        }
 private void ChannelOperation_PushNotificationReceived(Windows.Networking.PushNotifications.PushNotificationChannel sender, Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs e)
 {
 }
 private static void Channel_PushNotificationReceived(Windows.Networking.PushNotifications.PushNotificationChannel sender, Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs args)
 {
 }
 public PushNotificationChannel(Windows.Networking.PushNotifications.PushNotificationChannel channel)
 {
     // Convert DateTimeOffset to DateTime to ensure things work with Unity
     ExpirationTime = channel.ExpirationTime.DateTime;
     Uri            = channel.Uri;
 }