Detect if client is in staging or published mode

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


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


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

A Project.getProjectVersion() would be wonderful.


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

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.

Excellent. Thanks very much.