Picture of Sascha
Registered 5 years 339 days
Sascha Tuesday, 16 July 2019, 09:48 AM
List of events
I'am searching for a list of events which are send out by the javascript side of the myapps clients. I would like to know if there are more events on which I can listen to and do specific things.

For example is there a event which is send out when I click on the close button of an app?
Picture of Matthias Schertler (innovaphone)
Moderator Registered 12 years 192 days
Matthias Schertler (innovaphone) Tuesday, 16 July 2019, 10:49 AM
Re: List of events
All the communication between the app iframe and the myapps client is done using the start object and API objects created at the start object.

The documentation can be found here: sdk/web1/lib1/lib1.htm

Currently there is no event to the app when the close button is clicked. What we have is a callback when the app is detached from the main window (myApps for Windows only) - that causes closing the app and re-opening it in a different window. That callback can be registered using start.requestPrepareReload(callback).
Picture of Sascha
Registered 5 years 339 days
Sascha Tuesday, 16 July 2019, 02:33 PM
Re: List of events
Would it be possible to get such an event in the future?
What about the "beforeunload" event listener which is removed in your remove method in the innovaphone.pbx.appclient.ui.js on line 2250?
Could I use this event?
← You can define your color theme preference here