public override async Task OnInitializeAsync(IActivatedEventArgs args)
{
// content may already be shell when resuming
if ((Window.Current.Content as Shell) == null)
{
// setup hamburger shell
var nav = NavigationServiceFactory(BackButton.Attach, ExistingContent.Include);
Window.Current.Content = new Shell(nav);
}
//Push notification registration
await RegisterForPush(args);
//Set statusbar color for Mobile
if (AnalyticsInfo.VersionInfo.DeviceFamily == "Windows.Mobile") { SetStatusBar(); }
//Set Default Window Size on Desktop
if (AnalyticsInfo.VersionInfo.DeviceFamily == "Windows.Desktop") { SetWindowSize(); }
//Activate the view
Window.Current.Activate();
}