I have an application that has the following Page configuration:
/ -> Dashboard
/mobile -> mobileDashboard
When I use the Perspective application [on Android if it matters], how do I get to the /mobile page? It auto-launches to the root.
I have an application that has the following Page configuration:
/ -> Dashboard
/mobile -> mobileDashboard
When I use the Perspective application [on Android if it matters], how do I get to the /mobile page? It auto-launches to the root.
I'm reasonably sure this will work. There's a chance the Page Startup script doesn't have an attached Perspective Thread, but... we'll see.
Project > Session Events > Page Startup
def onPageStartup(page):
if page.props.path == "/" and page.session.props.device in ["android", "ios"]:
system.perspective.navigate(page="/mobile")
Thanks! That worked for me.