# Check where sessionis being run from

**URL:** <https://forum.inductiveautomation.com/t/check-where-sessionis-being-run-from/24970>\
**Category:** Ignition Early Access\
**Created:** [May 14, 2019, 1:27pm UTC](https://forum.inductiveautomation.com/t/check-where-sessionis-being-run-from/24970 "2019-05-14T13:27:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nburt](https://avatars.discourse-cdn.com/v4/letter/n/2bfe46/32.png) [@nburt](https://forum.inductiveautomation.com/u/nburt)\
**Post date:** [May 14, 2019, 1:27pm UTC](https://forum.inductiveautomation.com/t/check-where-sessionis-being-run-from/24970/1 "2019-05-14T13:27:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [May 14, 2019, 2:20pm UTC](https://forum.inductiveautomation.com/t/check-where-sessionis-being-run-from/24970/2 "2019-05-14T14:20:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nburt](https://avatars.discourse-cdn.com/v4/letter/n/2bfe46/32.png) [@nburt](https://forum.inductiveautomation.com/u/nburt)\
**Post date:** [May 14, 2019, 2:22pm UTC](https://forum.inductiveautomation.com/t/check-where-sessionis-being-run-from/24970/3 "2019-05-14T14:22:50Z")

</div>

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