From b51d81a8350a84886c193257244e146d982f3bbd Mon Sep 17 00:00:00 2001 From: YouR97 <952870061@qq.com> Date: Fri, 19 Jul 2024 15:41:34 +0800 Subject: [PATCH] =?UTF-8?q?ios=E9=80=9A=E7=9F=A5=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Forest/Assets/PhxhSDK | 2 +- .../Assets/Scripts/Gameplay/Debug/SROptions.Notification.cs | 5 ++++- Forest/ProjectSettings/UnityConnectSettings.asset | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Forest/Assets/PhxhSDK b/Forest/Assets/PhxhSDK index e308df9..fdd9587 160000 --- a/Forest/Assets/PhxhSDK +++ b/Forest/Assets/PhxhSDK @@ -1 +1 @@ -Subproject commit e308df9b0c54a031513e53e6ccea63cb23316105 +Subproject commit fdd9587d42783dadf5f859d31529e709e0c3588b diff --git a/Forest/Assets/Scripts/Gameplay/Debug/SROptions.Notification.cs b/Forest/Assets/Scripts/Gameplay/Debug/SROptions.Notification.cs index d9c583e..9221d13 100644 --- a/Forest/Assets/Scripts/Gameplay/Debug/SROptions.Notification.cs +++ b/Forest/Assets/Scripts/Gameplay/Debug/SROptions.Notification.cs @@ -20,8 +20,11 @@ public partial class SROptions { #if UNITY_ANDROID DateTime dateTime = DateTime.Now.AddSeconds(10f); - NotificationID = Notification.Android.SetNotification("通知", "测试通知", DateTime.UtcNow.AddSeconds(5f), "small", "large", "测试", true); + NotificationID = Notification.Android.SetNotification("通知", "测试通知", dateTime, "small", "large", "测试", true); DebugUtil.Log($"发送安卓测试通知,通知id:{NotificationID},时间:{dateTime},测试版本1"); +#elif UNITY_IOS + Notification.IOS.SetNotification("1", "通知","测试通知"); + DebugUtil.Log($"发送IOS测试通知,通知id:{NotificationID},时间:{DateTime.Now.AddSeconds(10f)},测试版本1"); #endif } diff --git a/Forest/ProjectSettings/UnityConnectSettings.asset b/Forest/ProjectSettings/UnityConnectSettings.asset index 29b1b1d..22937ef 100644 --- a/Forest/ProjectSettings/UnityConnectSettings.asset +++ b/Forest/ProjectSettings/UnityConnectSettings.asset @@ -35,6 +35,6 @@ UnityConnectSettings: m_GameIds: AndroidPlayer: 5640254 iPhonePlayer: 5640255 - m_GameId: 5640254 + m_GameId: 5640255 PerformanceReportingSettings: m_Enabled: 0