Unity-Technologies / furioos-sdk-js

Furioos SDK for JavaScript
30 stars 14 forks source link

OnSDKMessage was designed for debug only? #40

Closed irajsb closed 3 years ago

irajsb commented 3 years ago

Hello there ! I'm trying to send a text string from my unreal app to furioos to tell the browser to open a new link in a new tab ! And I tried doing that using SendSDKMessage but looks like it was only designed to work in debug mode: this.sdkDebug.onSDKMessage((data) => { // Here you can manage the received data. if (this._onSDKMessageCallback) { this._onSDKMessageCallback(data); }

irajsb commented 3 years ago

I noticed another logic that also calls the onSDKMessage and I tried to log it using

window.addEventListener("message", (e) => {
      console.log(Received message: ${e.data});

but it does not fire any events !

irajsb commented 3 years ago

Alright looks like everything works when I upload SDK to the website instead of localhost ! so in case anyone had problem with communication upload it to website server and test it again !