Check where sessionis being run from

Is there a way to check whether the application is currently being run from a web browser or the native app?

The use case is that we plan to implement our app on both Windows tablets (which don’t have a native app so will run the application in a web browser) and Android tablets (which will take advantage of the native app).
Since the web app and native app aren’t exactly the same, we’d like to handle certain things in each environment differently.

session.props.device.type will return from among “browser”, “designer”, “android”, or “ios”.

1 Like

That’s exactly what I was looking for, thank you!

1 Like