Page 1 of 1
Get Debug or Release environment
Posted: Mon Mar 31, 2014 6:59 am
by ishani modi
Hi,
I am making app for iOS. I want to check whether Release flag is checked or unchecked on App load in device, as i want to perform some actions as per environment detect
How can I get whether App is under Release or debug ?
Thanks,
Ishani
Get Debug or Release environment
Posted: Mon Mar 31, 2014 7:33 am
by Kateryna Grynko
Get Debug or Release environment
Posted: Mon Mar 31, 2014 7:36 am
by ishani modi
Hi Katya,
I want this in App load event because according to the environment I have to pick service URL. I also want App version which I am giving in App settings
Get Debug or Release environment
Posted: Mon Mar 31, 2014 7:56 am
by Kateryna Grynko
Ishani,
Unfortunately this can't be done.
Get Debug or Release environment
Posted: Mon Mar 31, 2014 8:31 am
by ishani modi
Hi Katya,
Will I be able to get any 1 of this ?
Get Debug or Release environment
Posted: Mon Mar 31, 2014 8:36 am
by ishani modi
Can I write a logic by which I can distinguish that my app is in published mode (or downloaded from app store) and not in any other mode?
Get Debug or Release environment
Posted: Mon Mar 31, 2014 9:11 pm
by Maryna Brodina
Hello!
Yes, but it's possible with PhoneGap plugin only. There is no problem for Android, but there is no way to add plugin for iOS through builder (we are working on this functionality). You would need to do that in xCode for iOS project.
Why don't you create global variable in a separate JS asset which shows what is the mode you use (don't forget to change this variable manually the way you need). This way is not worse than reading App version - in both you need to watch for manually set values.