0

How can I set the IP address of the server so that users don't need to enter it during the enrollment process?

In the manual it refers to "changing the Android agent SERVER_PROTOCOL to https and SERVER_PORT to 9443 in the constant.java file that is in the /modules/mobile-agents/android/client/client/src/main/java/org/wso2/emm/agent/utils directory." but not how to set the server address.

Thanks.

Community
  • 1
  • 1
Steve
  • 21
  • 4
  • Hi Dilshan thankyou for the tip, I made the changes as you suggested but it has made no difference. The QR code scanner gets the address, the phone connects and downloads the Agent. When the Agent opens the user still has to type in the address of the server - this is no good - there must be a way to fix this - I hope. – Steve Mar 23 '16 at 15:50

2 Answers2

0

This is for Android. For server configurations refer here. Change following entries.

<HostName>www.wso2.org</HostName>
<MgtHostName>www.wso2.org</MgtHostName>
Dilshan
  • 3,231
  • 4
  • 39
  • 50
0

Steve Let me be clear what you want to archive is to remove the server url text filed from the agent applications is it ?

In order to accomplish that you need to modify the the android agent and compile and generate a customer .apk file.

You can find the source for the android agent here.

If you examine ServerDetails.java and RegistrationActivity.java files you can see the server id is retrieve from the user and used in regiterDevice method. You have the freedom of changing that and hard code your server domain or IP address there.

Kamidu Punchihewa
  • 1,241
  • 10
  • 18