Redirect to specific URL for mobile Perspective

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")
2 Likes

Thanks! That worked for me.

1 Like

In the case where we are using perspective as an HMI we are using URL params to define what area the screen is in. This works well in the Perspective Workstation Windows desktop application. I would like to do something similar in the Android or Apple app and potentially use a tablet running the Perspective app but configure URL params when the app launches.

Using the above method how can I account for 20+ different parameters?