Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OnAsyncPageUnloaded not working on mobile
#1
Hello, 

I tried to use IWForm's OnAsyncPageUnloaded  event for triggers when the page is unloaded on browser side (due to browser/tab closing) to close session with command.


Code:
  if AIsCurrent and (WebApplication.ActiveFormCount = 1) then
   WebApplication.SelfDestruct;

It's ok on desktop browser (Chrome, Edge) but I tested on my mobile browser (Chrome, Safari) but It's not working.

How do I get it to work on mobile?


Note :

This link for unload event, at Usage note paragraph say that :

Quote:Especially on mobile, the unload event is not reliably fired.


Thank you
Reply


Messages In This Thread
OnAsyncPageUnloaded not working on mobile - by baxing - 12-26-2022, 01:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)