Last active
November 20, 2017 18:59
-
-
Save juucustodio/9a6eb497feb5ded4e7833d8ef8472448 to your computer and use it in GitHub Desktop.
Example of Push Notifications with OneSignal in Xamarin.Forms applications - http://julianocustodio.com/onesignal-push-notification
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
... | |
public App() | |
{ | |
InitializeComponent(); | |
MainPage = new DemoNotification.MainPage(); | |
OneSignal.Current.StartInit("Insert OneSignal App ID here").EndInit(); | |
} | |
protected override void OnStart() | |
{ | |
OneSignal.Current.RegisterForPushNotifications(); | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment