Salesforce documents five MDM keys for Android in its guide to using MDM with Mobile SDK apps, set as key-value pairs through your MDM suite. They cover which login hosts people see and whether they can change them, and certificate-based sign-in using a certificate already installed on the device. Salesforce says to work with your MDM provider, so the exact setup steps and the shape of the JSON depend on that provider.
Gives each host a readable name in the picker. The number of labels must equal the number of hosts.
["Production", "UAT sandbox"]
OnlyShowAuthorizedHosts
On or off
When true, people cannot edit the host list, so the app can only connect to the hosts you pushed.
true
Certificate-based sign-in
RequireCertAuth
On or off
Starts the certificate sign-in flow. On Android the app uses the user certificate on the device inside a web view. Android 5.0 or later.
true
ManagedAppCertAlias
Certificate alias
Names the certificate deployed to the device that the app should pick for sign-in. Salesforce says it is required on Android when certificate sign-in is on.
salesforce-user-cert
Deploy with Nomid
Roll Salesforce out in three steps
Step 1Add Salesforce to a policy
Find it on Google Play from the policy’s apps list and choose how it is installed.
Step 2Set its managed configuration
In the policy, set the app’s managed configuration with the keys and values from this page.
Step 3Assign the policy
Devices in the policy receive Salesforce and its configuration on their next sync.
Questions
Salesforce on managed Android
What is Salesforce's package name on Android?
Salesforce's MDM guide does not state the package name. This page uses com.salesforce.chatter for the Salesforce app on Android, so confirm it in your MDM's managed Google Play catalog before you target a policy.
Which Android versions are needed for certificate sign-in?
Salesforce lists Android 5.0 as the minimum for certificate-based authentication.
Where do these keys come from?
Salesforce publishes them in its guide to using MDM with Mobile SDK apps, and its key descriptions refer to the Salesforce mobile app. Check with Salesforce if you rely on the keys for a branded or custom-built app.
What format do the host keys take?
Salesforce lists AppServiceHosts and AppServiceHostLabels as a string or a string array, and the two lists must have the same number of entries. Salesforce tells you to contact your MDM provider to configure the settings, so check how your provider enters lists.