ios通知测试

iOS_release
YouR97 2024-07-19 15:41:34 +08:00
parent 1596bcf21f
commit b51d81a835
3 changed files with 6 additions and 3 deletions

@ -1 +1 @@
Subproject commit e308df9b0c54a031513e53e6ccea63cb23316105 Subproject commit fdd9587d42783dadf5f859d31529e709e0c3588b

View File

@ -20,8 +20,11 @@ public partial class SROptions
{ {
#if UNITY_ANDROID #if UNITY_ANDROID
DateTime dateTime = DateTime.Now.AddSeconds(10f); 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"); DebugUtil.Log($"发送安卓测试通知,通知id:{NotificationID},时间:{dateTime},测试版本1");
#elif UNITY_IOS
Notification.IOS.SetNotification("1", "通知","测试通知");
DebugUtil.Log($"发送IOS测试通知,通知id:{NotificationID},时间:{DateTime.Now.AddSeconds(10f)},测试版本1");
#endif #endif
} }

View File

@ -35,6 +35,6 @@ UnityConnectSettings:
m_GameIds: m_GameIds:
AndroidPlayer: 5640254 AndroidPlayer: 5640254
iPhonePlayer: 5640255 iPhonePlayer: 5640255
m_GameId: 5640254 m_GameId: 5640255
PerformanceReportingSettings: PerformanceReportingSettings:
m_Enabled: 0 m_Enabled: 0