Running in Dev Mode?

Hi there,
is it possible to recog inside an app whether it runs in the developer mode (Dev Mode) or production mode (Player)?
Because the table writing functions are not available in dev mode I like to catch the errors within an trigger function

Regards Chris

If you dont need to use a specific Station on your Dev Player, you could catch for the station name (Test Station 1 or so?).

Another dirty workaround could be to select a Player Language, that is very unlikely to be used by any productive station.

But I’m also curious if there is a driect way to get this information inside the app…

Hi @ChrisF,

I use this condition to detect if the current version is the development version. Please be cautions since the user language also changes the value of the development version. Hence, the displayed trigger will only trigger when the user language is set to German.

Kind Regards,
Oliver

Hi Oliver,
yes, this was my first thought and my answer to a similar question.

Before releasing a new app version, I test this in the developer mode (brower tab) and also in production setting (player)
image

Inside the developer mode (via the Test button) a lot of functions aren’t available and produce trigger errors.

And this can’t be handled be the app version in a condition.

Regards Chris

Hi @ChrisF,

we use this condition to change the behavior of triggers in the development version. When we need to test functions which are not available in the test environment we deploy the app to dummy stations and use dummy users and so on to tag and remove the database entries afterwards.
In the beginning we had a development workspace where we could test apps and their complete functionality but since we can’t replace apps with apps from other workspaces in place we shut these workspaces down.

Kind regards,
Oliver

1 Like