Skip to content

Commit 236ab48

Browse files
Android sample default channel configuration.
1 parent db62d3a commit 236ab48

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sample/Sample.Android/MainApplication.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77

88
using System;
99
using Android.App;
10+
using Android.OS;
1011
using Android.Runtime;
1112
using Notifo.SDK.FirebasePlugin;
13+
using Plugin.FirebasePushNotification;
1214

1315
namespace Sample.Droid
1416
{
@@ -23,6 +25,13 @@ public MainApplication(IntPtr handle, JniHandleOwnership transer)
2325
public override void OnCreate()
2426
{
2527
base.OnCreate();
28+
29+
if (Build.VERSION.SdkInt >= BuildVersionCodes.O)
30+
{
31+
FirebasePushNotificationManager.DefaultNotificationChannelId = "FirebasePushNotificationChannel";
32+
FirebasePushNotificationManager.DefaultNotificationChannelName = "General";
33+
}
34+
2635
#if DEBUG
2736
NotifoFirebasePlugin.Initialize(this, new NotifoStartup(), resetToken: true);
2837
#else

0 commit comments

Comments
 (0)