[add] 告訴原生平台onLoadOK

This commit is contained in:
建喵 2022-08-29 15:58:44 +08:00
parent b5d17697c3
commit 05e2ad3d0e

View File

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