Get the route or url address of the current page on app

encounter a requirement is to write a separate HTML code according to the different address url entered into the different pages of app session storage, then the connection will be completely different and will be emptied. If you can"t get a blank screen or get stuck on app with window.location.href, ask for help on how to solve this requirement

Mar.12,2021

app webview can intercept jumps. The intercepted address is the redirected address, so you can't get it?
if the frontend is SPA, you need the frontend configuration and native cooperation. When the frontend switches routes, it can trigger the agreed notification method.

Menu