diff --git a/Forest/Assets/PhxhSDK b/Forest/Assets/PhxhSDK index 8e39d3a..d4a6cc4 160000 --- a/Forest/Assets/PhxhSDK +++ b/Forest/Assets/PhxhSDK @@ -1 +1 @@ -Subproject commit 8e39d3aad4c76fe6553bfb2db5f0cd945eb708f8 +Subproject commit d4a6cc44b936cb6c7d1ca40862cbe9fa6ab2277d diff --git a/Forest/Assets/Scripts/Gameplay/Game/Main.cs b/Forest/Assets/Scripts/Gameplay/Game/Main.cs index 5344993..66f18e9 100644 --- a/Forest/Assets/Scripts/Gameplay/Game/Main.cs +++ b/Forest/Assets/Scripts/Gameplay/Game/Main.cs @@ -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(); } diff --git a/Forest/Assets/Scripts/Gameplay/UI/Other/UILoginPanelController.cs b/Forest/Assets/Scripts/Gameplay/UI/Other/UILoginPanelController.cs index 8ce0723..f23cf6f 100644 --- a/Forest/Assets/Scripts/Gameplay/UI/Other/UILoginPanelController.cs +++ b/Forest/Assets/Scripts/Gameplay/UI/Other/UILoginPanelController.cs @@ -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()