Last active
December 24, 2019 16:01
-
-
Save dylanberry/d97fdba142e3c2c6b6089035bca8d857 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override async void OnInitialized() | |
{ | |
try | |
{ | |
InitializeComponent(); | |
OneSignal.Current | |
.StartInit(Secrets.OneSignal) | |
.HandleNotificationOpened(OnNotificationOpened) | |
.EndInit(); | |
await NavigationService.NavigateAsync("MainPage"); | |
} | |
catch (Exception ex) | |
{ | |
Console.WriteLine(ex); | |
throw; | |
} | |
} | |
private void OnNotificationOpened(OSNotificationOpenedResult result) | |
{ | |
//TODO: handle notification | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment