Created
March 2, 2021 01:17
-
-
Save felipebaltazar/ba9c176bdf8b99c5736b63d50ac97990 to your computer and use it in GitHub Desktop.
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
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