[add] 告訴原生平台onLoadOK
This commit is contained in:
parent
b5d17697c3
commit
05e2ad3d0e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user