# Detect if client is in staging or published mode

**URL:** <https://forum.inductiveautomation.com/t/detect-if-client-is-in-staging-or-published-mode/5112>\
**Category:** Module Development\
**Created:** [September 7, 2012, 12:04pm UTC](https://forum.inductiveautomation.com/t/detect-if-client-is-in-staging-or-published-mode/5112 "2012-09-07T12:04:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![systemparadox](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@systemparadox](https://forum.inductiveautomation.com/u/systemparadox)\
**Post date:** [September 7, 2012, 12:04pm UTC](https://forum.inductiveautomation.com/t/detect-if-client-is-in-staging-or-published-mode/5112/1 "2012-09-07T12:04:10Z")

</div>

How can I detect if a client is running in published or staging mode?

Thanks.

---

<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:** [September 7, 2012, 4:27pm UTC](https://forum.inductiveautomation.com/t/detect-if-client-is-in-staging-or-published-mode/5112/2 "2012-09-07T16:27:16Z")

</div>

Unfortunately, there isn’t a way to detect that right now. I will add a request in to get that added.

---

<div class="post-metadata">

**Author:** ![systemparadox](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@systemparadox](https://forum.inductiveautomation.com/u/systemparadox)\
**Post date:** [September 10, 2012, 8:37am UTC](https://forum.inductiveautomation.com/t/detect-if-client-is-in-staging-or-published-mode/5112/3 "2012-09-10T08:37:36Z")

</div>

Thanks.

---

<div class="post-metadata">

**Author:** ![systemparadox](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@systemparadox](https://forum.inductiveautomation.com/u/systemparadox)\
**Post date:** [October 5, 2012, 2:26pm UTC](https://forum.inductiveautomation.com/t/detect-if-client-is-in-staging-or-published-mode/5112/4 "2012-10-05T14:26:13Z")

</div>

Any news on this? It’s about to become rather urgent.

A Project.getProjectVersion() would be wonderful.

Thanks.

---

<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:** [October 5, 2012, 3:52pm UTC](https://forum.inductiveautomation.com/t/detect-if-client-is-in-staging-or-published-mode/5112/5 "2012-10-05T15:52:30Z")

</div>

No news yet. We will post once we have more information.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [October 18, 2012, 6:38pm UTC](https://forum.inductiveautomation.com/t/detect-if-client-is-in-staging-or-published-mode/5112/6 "2012-10-18T18:38:50Z")

</div>

Ok in 7.5.4, system.util.getSystemFlags() has a bit turned on for STAGING\_FLAG, and for the SDK ClientContext now has a getProjectVersion() function.

---

<div class="post-metadata">

**Author:** ![systemparadox](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@systemparadox](https://forum.inductiveautomation.com/u/systemparadox)\
**Post date:** [October 19, 2012, 7:42am UTC](https://forum.inductiveautomation.com/t/detect-if-client-is-in-staging-or-published-mode/5112/7 "2012-10-19T07:42:30Z")

</div>

Excellent. Thanks very much.
