ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Get Debug or Release environment

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

ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Get Debug or Release environment

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Get Debug or Release environment

Ishani,

Unfortunately this can't be done.

ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Get Debug or Release environment

Hi Katya,

Will I be able to get any 1 of this ?
Image

ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Get Debug or Release environment

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?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Get Debug or Release environment

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.

Return to “Issues”