private void AcquirePushChannel() { CurrentChannel = HttpNotificationChannel.Find("MyPushChannel"); if (CurrentChannel == null) { CurrentChannel = new HttpNotificationChannel("MyPushChannel"); CurrentChannel.Open(); CurrentChannel.BindToShellToast(); } CurrentChannel.ChannelUriUpdated += new EventHandler <NotificationChannelUriEventArgs>(async(o, args) => { // Register for notifications using the new channel await MobileService.GetPush() .RegisterNativeAsync(CurrentChannel.ChannelUri.ToString()); }); CurrentChannel.ShellToastNotificationReceived += new EventHandler <NotificationEventArgs>((o, args) => { string message = ""; foreach (string key in args.Collection.Keys) { message += args.Collection[key] + ": "; } Deployment.Current.Dispatcher.BeginInvoke(() => { // Show the notification since toasts aren't // displayed when the app is currently running. MessageBox.Show(message); }); }); }