安卓通知测试

iOS_release
YouR97 2024-06-25 14:53:36 +08:00
parent e19de3acd9
commit 345be4ac77
3 changed files with 5 additions and 1 deletions

@ -1 +1 @@
Subproject commit 8e39d3aad4c76fe6553bfb2db5f0cd945eb708f8
Subproject commit d4a6cc44b936cb6c7d1ca40862cbe9fa6ab2277d

View File

@ -46,6 +46,7 @@ namespace Gameplay.Game
{
BIManager.Instance.TrackEventOnce(cfg.BI.EventFirst.fte_open);
BIManager.Instance.TrackEvent(cfg.BI.Event.app_launch);
Notification.Init();
_game.Start();
}

View File

@ -8,6 +8,7 @@ using Framework.Event;
using Framework.Manager;
using Framework.Constants;
using Event = cfg.BI.Event;
using System;
public class UILoginPanelController : UIWindow
{
@ -109,6 +110,8 @@ public class UILoginPanelController : UIWindow
LoginManager.Instance.ShowLogin = true;
AppInfoManager.Instance.CurLoginState = AppInfoManager.NetConfigID.DeviceID;
CloseWin();
Notification.Android.SetNotification("通知", "测试通知", DateTime.UtcNow.AddSeconds(5f), "small", "large", "测试", true);
}
private async void CloseWin()