Skip to content

Instantly share code, notes, and snippets.

@juucustodio

juucustodio/App.xaml.cs

Last active Nov 20, 2017
Embed
What would you like to do?
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
You can’t perform that action at this time.