fix: 修复打开 Channel 跳转的 BUG

Signed-off-by: huyufei <yufei.hu@castbox.fm>
main
胡宇飞 2024-06-24 18:40:20 +08:00
parent e8b3112cc5
commit 7cbc5ac148
1 changed files with 2 additions and 1 deletions

View File

@ -159,7 +159,8 @@ namespace Guru.Notification
{
// 低版本处理方式
Debug.Log($"[SDK][Noti] --- #2 SDK {sdkInt} not requested -> open channel");
AndroidNotificationCenter.OpenNotificationSettings(FCM_DEFAULT_CHANNEL_ID); // 打开ChannelID
AndroidNotificationCenter.RegisterNotificationChannel(new AndroidNotificationChannel(FCM_DEFAULT_CHANNEL_ID,
FCM_DEFAULT_CHANNEL_ID, "", Importance.Default)); // 打开ChannelID
SetGrantStatus(STATUS_GRANTED);
}
else