Skip to content

Instantly share code, notes, and snippets.

@felipebaltazar
Created March 2, 2021 01:17
Show Gist options
  • Save felipebaltazar/ba9c176bdf8b99c5736b63d50ac97990 to your computer and use it in GitHub Desktop.
Save felipebaltazar/ba9c176bdf8b99c5736b63d50ac97990 to your computer and use it in GitHub Desktop.
namespace Notifications.Droid
{
[Application]
public class MainApplication : Application
{
public MainApplication(IntPtr handle, JniHandleOwnership transfer) : base(handle, transfer)
{
}
public override void OnCreate()
{
base.OnCreate();
this.ShinyOnCreate(new MyStartup());
AndroidOptions.DefaultSmallIconResourceName = "icon";
AndroidOptions.DefaultLargeIconResourceName = "icon";
//Caso você queira inscrever algum topico por padrão
FirebaseMessaging.Instance.SubscribeToTopic("all");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment