Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The supported parameters are:

ParameterDescriptionSupported since client version
nameSettings name. This may be shown to the user in the confirmation dialog. It should be a very short description of what the settings are for, so that the user can quickly determine if they are correct.5.2.0
installationCodeThe installation code.5.2.0
serviceUrlThe service URL. This is usually in the format "https://{domain}/rest/api"5.2.0
skipConfirmationIf true, user is not asked to confirm the activation of these settings. Otherwise, user will be shown a dialog where they must confirm the activation.5.2.0

Installation code and service URL are required values to start activation.

...

If the app has somehow been granted the permission to access device storage, it is able to read configuration files from the following locations:

LocationSupported since client version

/sdcard/mysync.json

(same directory as returned by Environment.getExternalStorageDirectory())

5.2.0
/enterprise/usr/mysync.json5.2.0

Via launch intent

The JSON can be provided via an Intent. The intent should target the MainActivity class, and the extra activation_settings should contain the JSON as string value. For example:

Code Block
languagejava
titleIntent example
Intent intent = new Intent();
intent.setClassName("eu.mysync.android.dm", "eu.mysync.android.dm.activity.MainActivity");
intent.putExtra("activation_settings", "{'name':'Example settings','installationCode':'12345','serviceUrl':'https://mysync.example.com/rest/api', 'skipConfirmation':false}");
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);

If you are using Zebra Technologies' StageNow, you can create an Intent and enter the values like this:

Image Added