onLinked/onUnlinked events not triggering

Hi,

I'm having issues with the onLinked/onUnlinked events triggering. I have developed my app to listen for the events and it works fine in the development environment using localhost, however as soon as I run in production, those events no longer trigger.
For testing I just deploy the same code as development with no modifications just that its now hosted on a proper domain (same as the domain registered in appStudio) rather than localhost.

example code that I'm using to debug this:

JET.onLoad(function() {
JET.onLinked(function () { console.log('linked') })
JET.onUnlinked(function () { console.log('unlinked') })
})

Best Answer

  • Zhenya Kovalyov
    Answer ✓

    @nick.beckenham this event is not triggered in the App Studio container and is primarily used for internal purposes. You only need to monitor OnContextChange() event.

Answers