Page 1 of 1

Set and get environment variable

Posted: Thu Apr 03, 2014 9:55 am
by ishani modi

Hi,

I want to set environment variable in App and on device I want to pick that environment variable how can I do it ?

Thanks,
Ishani


Set and get environment variable

Posted: Thu Apr 03, 2014 10:50 am
by ishani modi

Hi,
In the below screenshot I have added "LSEnvironment" tag.
How can I get this tag in javascript ?
Please help..!!

Image

Thanks,
Ishani


Set and get environment variable

Posted: Thu Apr 03, 2014 11:12 am
by Kateryna Grynko

Hi Ishani,

Do you mean OS setting by environment variable?


Set and get environment variable

Posted: Thu Apr 03, 2014 11:15 am
by ishani modi

Yes, I have in the this .plst file. Now on App Load in want to read this
How can I read this ?
Or can you give me the file name where this all tags are getting read, I will modify my code there ?
Actually I am not getting the file where all this tags are getting read


Set and get environment variable

Posted: Thu Apr 03, 2014 2:03 pm
by Kateryna Grynko

Ishani,

No, this can't be changed programmaticaly via JS, you would need Objective C, look for a solution in the Internet. For example, http://stackoverflow.com/questions/16...


Set and get environment variable

Posted: Thu Apr 03, 2014 2:36 pm
by ishani modi

Hi Katya,
Thanks for your help, I have solved this by modifying in Objective C