[mod] webview "loaded" 才開始跑事件
This commit is contained in:
parent
4a2abf55f6
commit
b5d17697c3
@ -78,9 +78,11 @@ export default class Manager extends cc.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected start(): void {
|
protected start(): void {
|
||||||
|
this.webview.node.on("loaded", () => {
|
||||||
const FCMToken: string = NativeClass.Instance.GetFCMToken();
|
const FCMToken: string = NativeClass.Instance.GetFCMToken();
|
||||||
console.log(`FCMToken ${FCMToken}`);
|
console.log(`FCMToken ${FCMToken}`);
|
||||||
NativeClass.Instance.CocosBridge(System_Eevent.SetFCMToken, FCMToken, 666);
|
NativeClass.Instance.CocosBridge(System_Eevent.SetFCMToken, FCMToken);
|
||||||
|
}, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 跨版本溝通
|
/** 跨版本溝通
|
||||||
|
Loading…
Reference in New Issue
Block a user