debug vs release mode when submitting to app / google play store?

I’ve submitted my corona app to the app store.  My app hits my server a lot for api calls.  My app is in review…  once approved I would like to submit an update.

The problem is that my update would include changes to my server side code which would break my first version of the app…

Is there any way to point my app to my dev server during the app review process and then have it automatically switch over to my prod server once the app is released?  

If you change your server API’s you need to have a way for your server to recognize both old an new versions. You cannot guarantee that users will update their apps to the latest version.

Most people doing server based apps will encode a version number in the API endpoint:

https://myserver.com/myapi/v2/doSomething.php

That way the new v2 version won’t conflict with the original v1 version which might be at:

https://myserver.com/myapi/doSomething.php

You could also pass the version as a key-value pair as part of the GET parameters, but putting your V2 versions in a folder keeps your server scripts cleaner.

Rob

If you change your server API’s you need to have a way for your server to recognize both old an new versions. You cannot guarantee that users will update their apps to the latest version.

Most people doing server based apps will encode a version number in the API endpoint:

https://myserver.com/myapi/v2/doSomething.php

That way the new v2 version won’t conflict with the original v1 version which might be at:

https://myserver.com/myapi/doSomething.php

You could also pass the version as a key-value pair as part of the GET parameters, but putting your V2 versions in a folder keeps your server scripts cleaner.

Rob