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); }