I have a messenger bot that provides users with links to a webpage. Is there a way to detect when the user closed the webview and therefore returned to bot conversation?
This question only applies to Messenger app on mobiles phones, desktop is fine.
window.onbeforeunload
isn't supported, window.pagehide
only works on reload but not on closing the webview as well as window.unload
.