The onURLChanging function triggers when loading the initial page but any subsequent changes to the URL do not trigger that function. I tried adding the listener (with a delay) after the initial page loads but then it never gets called.
I saw this post and wondered if it might be a factor: "In September 2019, Apple has released a new, separate version of iOS specifically for the iPad: iPadOS. With iPadOS there comes a change in how Safari manages webpages and identifies them."
The onURLChanging function triggers when loading the initial page but any subsequent changes to the URL do not trigger that function. I tried adding the listener (with a delay) after the initial page loads but then it never gets called.
I saw this post and wondered if it might be a factor: "In September 2019, Apple has released a new, separate version of iOS specifically for the iPad: iPadOS. With iPadOS there comes a change in how Safari manages webpages and identifies them."