latestversionplugin icon indicating copy to clipboard operation
latestversionplugin copied to clipboard

Test whether app came from store?

Open charlesroddie opened this issue 4 years ago • 1 comments

How can we know if the app came from the store?

We would like to include logic to test for the latest version if the app came from the store, but if the app is running on a debug build, or is distributed for testing via app center/testflight, we don't want to do the store version check.

charlesroddie avatar Nov 07 '19 10:11 charlesroddie

@charlesroddie in visual studio look up conditional compilation symbols, you find it in the project properties under Build, there I use during debug "ENV_TEST" and on production build "ENV_PROD", then you can in your code make sections that will only be compiled based on which build you are using, that way you can ommit the store check with debug builds.

#if ENV_TEST // Test code. #elif ENV_PROD // Production code. #endif

TheSayvior avatar Feb 20 '20 10:02 TheSayvior