Skip to content

Instantly share code, notes, and snippets.

@felipebaltazar
Created March 2, 2021 01:21
Show Gist options
  • Save felipebaltazar/73c7593c2176f7f3b0d939cf6d0ff3d4 to your computer and use it in GitHub Desktop.
Save felipebaltazar/73c7593c2176f7f3b0d939cf6d0ff3d4 to your computer and use it in GitHub Desktop.
namespace Notifications.iOS
{
[Register(nameof(AppDelegate))]
public class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
this.ShinyFinishedLaunching(new MyStartup());
// Você pode inscrever em um tópico por padrão
FirebaseMessaging.Instance.SubscribeToTopic("all");
global::Xamarin.Forms.Forms.Init();
LoadApplication(new App());
return base.FinishedLaunching(app, options);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment