Safari App Extension: How to be notified when Safari terminates

As far as I can determine, there is no way to save the data in my Safari App Extension when Safari terminates. It seems I have to save the data every time the page changes. That's wasteful. Does anyone know of a work around?

Replies

There is currently not a way to do this with Safari App Extensions.

Can you please file feedback at https://feedbackassistant.apple.com with the use case you are trying to handle?

Thanks!