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
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
Hi Ishani,
Take a look at here please:
http://docs.phonegap.com/en/2.8.0/gui...
https://discussions.apple.com/thread/...
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
Ishani,
Unfortunately this can't be done.
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?
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.