diff --git a/assets/Script/Manager.ts b/assets/Script/Manager.ts index d4f2161..862d351 100644 --- a/assets/Script/Manager.ts +++ b/assets/Script/Manager.ts @@ -81,7 +81,7 @@ export default class Manager extends cc.Component { this.webview.node.on("loaded", () => { const FCMToken: string = NativeClass.Instance.GetFCMToken(); console.log(`FCMToken ${FCMToken}`); - NativeClass.Instance.CocosBridge(System_Eevent.SetFCMToken, FCMToken); + NativeClass.Instance.CocosBridge(System_Eevent.SetFCMToken, `"${FCMToken}"`); }, this); } @@ -119,7 +119,7 @@ export default class Manager extends cc.Component { public onLoadOK(): void { const FCMToken: string = NativeClass.Instance.GetFCMToken(); console.log(`FCMToken ${FCMToken}`); - NativeClass.Instance.CocosBridge(System_Eevent.SetFCMToken, FCMToken); + NativeClass.Instance.CocosBridge(System_Eevent.SetFCMToken, `"${FCMToken}"`); } public Alert(msg: string): void {