Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Last active November 20, 2017 18:59
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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
...
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