# Detecting mobile launch

**URL:** <https://forum.inductiveautomation.com/t/detecting-mobile-launch/4404>\
**Category:** Ignition\
**Created:** [May 2, 2012, 11:03pm UTC](https://forum.inductiveautomation.com/t/detecting-mobile-launch/4404 "2012-05-02T23:03:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [May 2, 2012, 11:03pm UTC](https://forum.inductiveautomation.com/t/detecting-mobile-launch/4404/1 "2012-05-02T23:03:58Z")

</div>

Is there a way to detect that a project is being launched on a mobile device and open up some mobile specific screens with a start up script or something like that?

I ask because I want to have some mobile SPC screens and I can’t really create a separate project without duplicating the production model, but the standard screens don’t really work too well on a smaller Mobile device.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [May 3, 2012, 12:24am UTC](https://forum.inductiveautomation.com/t/detecting-mobile-launch/4404/2 "2012-05-03T00:24:41Z")

</div>

Yes, you can do the following in a script:`flags = system.util.getSystemFlags()
isMobile = flags & system.util.MOBILE_FLAG == system.util.MOBILE_FLAG
print isMobile`

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [May 3, 2012, 11:48am UTC](https://forum.inductiveautomation.com/t/detecting-mobile-launch/4404/3 "2012-05-03T11:48:26Z")

</div>

Beautiful! That works perfect. Thanks, Travis!
