admin管理员组文章数量:1291083
Anyone implemented firebase push notification on maui .NET 8
I followed a tutorial and it worked well on android , I am able to receive the push notifications but on iOS it is not receiving the push notification.
I followed this tutorial
Below is my mauiprogram.cs
:
private static MauiAppBuilder RegisterFirebaseServices(this MauiAppBuilder builder)
{
builder.ConfigureLifecycleEvents(events =>
{
#if IOS
events.AddiOS(iOS => iOS.WillFinishLaunching((_, __) =>
{
CrossFirebase.Initialize();
FirebaseCloudMessagingImplementation.Initialize();
return false;
}));
#endif
#if ANDROID
events.AddAndroid(android => android.OnCreate((activity, _) =>
CrossFirebase.Initialize(activity)));
#endif
});
return builder;
}
I registered Firebase in maui like this:
.RegisterFirebaseServices()
Entitlement.plist :
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ".0.dtd">
<plist version="1.0">
<dict>
<key>aps-environment</key>
<string>development</string>
</dict>
</plist>
Why doesn't it works on iOS? Do I need to specify any permission in info.plist
in order to receive push notification on iOS?
Has anyone implemented firebase push notification in maui 8 on iOS as well as Android?
本文标签: xamarinFirebase push notification in MAUI iosStack Overflow
版权声明:本文标题:xamarin - Firebase push notification in MAUI ios - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741509620a2382531.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论