To make sure I don’t have a code branch per store I use the following to detect what store the app was built for
local targetAppStore = system.getInfo( “targetAppStore” );
then based on the targetAppStore value I’m setting store specific variable or executing store specific logic.
Do you see any security issues with this approach? And is this how it’s typically done?
Thank you.