HowTo: Changing the Services URL of your application

Official Content

When you develop and then publish your smart device application, the services URL is taken from Web Root property. However, in some situations, you may need to change that URL for consuming the services from another server. In order to achieve that aim, GeneXus provides a way to indicate that the services URL can then be changed for the installed application without having to publish the application again in the relevant stores.

Steps

1. Allow dynamic services

Go to the properties of Smart Devices Generator and change Dynamic Services URL property value to True and enter a default value for Services URL property.
Properties_png
Note: Refer to Services URL property more information about URL format.

2. Build the application

Generate, compile and publish your application as usual.

3. Change the Service URL from the app

Once your application has been installed on a device you will be able to change the Services URL.

3.a) Android settings

Android, execute your application, go to the contextual menu and select Preferences. Then, a dialog will be displayed. Tap on the down arrow and enter the services URL.
Android-DynamicServiceURL_png

3.b) iOS settings

Go to Settings and select your application. Now just enter the new services URL in the Address field.
iOS-DynamicServiceURL_png

Considerations

If Services URL is empty when entering to the application the application will ask you for a Services Url. Anyway, consider setting a default value for your products because for example in the Apple approval process the application will not be approved without a sample server.

Scope

Platforms   Android Smart Devices, Apple Smart Devices (iOS), BlackBerry Smart Devices





Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.