Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Created November 20, 2017 18:26
  • 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/a4a21b1d7732c92bebe6b91a100dde32 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
...
protected override void OnCreate(Bundle bundle)
{
TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar;
base.OnCreate(bundle);
OneSignal.Current.StartInit("Insert OneSignal App ID here").EndInit();
global::Xamarin.Forms.Forms.Init(this, bundle);
LoadApplication(new App());
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment