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.
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?