Need to have an onClose event for the task pane or content pane add-in
There should be an onClose event I can ask the user to save settings, or ask them if they are sure, and then prevent the close if necessary. If the add-ins are going to be useful business apps, the user experience of saving before closing is extremely important.
Has there been any development on this?
Tobias Thornfeldt Nissen commented
We also need this feature to be able to make an asynchronous API call before the add-in or document closes.
We have a need for this in order to automatically sign the user out via our REST api, thereby cleaning up the server session and putting the license back in the available pool.