From 05e2ad3d0e01046e916daba40a9b099fde4eb981 Mon Sep 17 00:00:00 2001 From: JianMiau Date: Mon, 29 Aug 2022 15:58:44 +0800 Subject: [PATCH] =?UTF-8?q?[add]=20=E5=91=8A=E8=A8=B4=E5=8E=9F=E7=94=9F?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0onLoadOK?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Script/Manager.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/assets/Script/Manager.ts b/assets/Script/Manager.ts index 9336cf4..d4f2161 100644 --- a/assets/Script/Manager.ts +++ b/assets/Script/Manager.ts @@ -116,6 +116,12 @@ export default class Manager extends cc.Component { NativeClass.Instance.TTS_Play(msg); } + public onLoadOK(): void { + const FCMToken: string = NativeClass.Instance.GetFCMToken(); + console.log(`FCMToken ${FCMToken}`); + NativeClass.Instance.CocosBridge(System_Eevent.SetFCMToken, FCMToken); + } + public Alert(msg: string): void { alert(msg); }