Newer Version Available
MobileSettings
In the package manifest, all organization settings metadata types are accessed using the “Settings” name. See Settings for more details.
Declarative Metadata File Suffix and Directory Location
MobileSettings values are stored in a single file named Mobile.settings in the settings directory. The .settings files are different from other named components because there is only one settings file for each settings component.
Version
Mobile settings are available in API version 27.0 and later.
Fields
| Field | Field Type | Description |
|---|---|---|
| chatterMobile (Deprecated) | ChatterMobileSettings | Deprecated in API version 46.0. The settings for devices running Chatter mobile. |
| dashboardMobile (Deprecated) | DashboardMobileSettings | The settings for devices running the mobile dashboards app. |
| enableImportContactFromDevice | boolean | Indicates whether users can import contacts from their mobile
device (true) or not (false). Available in API version 47.0 and later. |
| enableLightningOnMobile | boolean | Removed in API version 48.0. Indicates whether the org is enabled for the new Salesforce mobile app. Available in API version 47.0 only. |
| enableNewSalesforceMobileAppForTablet | boolean | Indicates whether the org is enabled for the new Salesforce mobile app tablet experience (true) or
not (false). If your org opted
into the the new Salesforce mobile app during the pilot or in Winter '20, the default value is true. Otherwise, it's false. This field is available only
for orgs that opted in to the new Salesforce mobile app during the pilot or in Winter ’20. Available in API version 48.0 and later. |
| enableOfflineDraftsEnabled | boolean | Indicates whether users can create, edit, and delete records
while offline in the Salesforce mobile app (true) or not (false). The default value is
true. This option isn’t
available if enableS1OfflinePref is set to
false. Available in API version 47.0 and later. |
| enablePopulateNameManuallyInToday | boolean | Indicates whether the user’s name is shown on the Today page in
the Salesforce mobile app (true) or not (false).
The default value is false. Available in API version 47.0 and later. |
| enableS1EncryptedStoragePref2 | boolean | Indicates whether the Salesforce mobile web uses secure and
persistent browser caching to improve performance (true) or not (false). The default value is
true. Available in API version 47.0 and later. |
| enableS1OfflinePref | boolean | Indicates whether users can access records offline in the
Salesforce mobile app (true) or
not (false). This option is set
to true the first time someone
in your org installs one of the Salesforce downloadable
apps. Available in API version 47.0 and later. However, offline access isn’t supported in all versions of the downloadable mobile apps. Users must have version 10.0 or later of the Salesforce for Android app or the Salesforce for iOS app. Offline access isn’t available for the Salesforce mobile web. |
| touchMobile (Deprecated) | TouchMobileSettings | Deprecated in API version 46.0. The settings for devices running Salesforce Touch. |
ChatterMobileSettings
These fields are deprecated as of API version 46.0. Represents your organization’s Chatter Mobile settings.
| Field | Field Type | Description |
|---|---|---|
| IPadAuthorized | boolean | Indicates whether iPad devices are enabled for Chatter Mobile (true) or not (false). |
| IPhoneAuthorized | boolean | Indicates whether iPhone devices are enabled for Chatter Mobile (true) or not (false). |
| androidAuthorized | boolean | Indicates whether Android devices are enabled for Chatter Mobile (true) or not (false). |
| blackBerryAuthorized | boolean | Indicates whether Blackberry devices are enabled for Chatter Mobile (true) or not (false). |
| enableChatterMobile | boolean | Indicates whether Chatter Mobile has been enabled for your organization (true) or not (false). |
| enablePushNotifications | boolean | Indicates whether Chatter push notifications have been enabled for your organization (true) or not (false) |
| sessionTimeout | MobileSessionTimeout (enumeration of type string) |
The length of time after which users without activity are
prompted to log out or continue working. Valid values are:
|
DashboardMobileSettings
These fields are deprecated. Represents your organization’s Mobile Dashboards iPad app settings.
| Field | Field Type | Description |
|---|---|---|
| enableDashboardIPadApp | boolean | Indicates whether Mobile Dashboards iPad app has been enabled for your organization (true) or not (false). |
TouchMobileSettings
These fields are deprecated as of API version 46.0. Salesforce Touch has been upgraded to the Salesforce mobile app.
| Field | Field Type | Description |
|---|---|---|
| enableTouchBrowserIPad | boolean | Indicates whether your organization has the Salesforce Touch mobile browser app enabled (true) or not (false). |
| enableTouchAppIPad | boolean | Indicates whether your organization has the Salesforce Touch downloadable app enabled (true) or not (false) |
Declarative Metadata Sample Definition
This is a sample mobile.settings metadata file.
1<?xml version="1.0" encoding="UTF-8"?>
2<MobileSettings xmlns="http://soap.sforce.com/2006/04/metadata">
3 <dashboardMobile>
4 <enableDashboardIPadApp>true</enableDashboardIPadApp>
5 </dashboardMobile>
6 <enableLightningOnMobile>false</enableLightningOnMobile>
7 <enableImportContactFromDevice>true</enableImportContactFromDevice>
8 <enableOfflineDraftsEnabled>true</enableOfflineDraftsEnabled>
9 <enableS1EncryptedStoragePref2>true</enableS1EncryptedStoragePref2>
10 <enableS1OfflinePref>true</enableS1OfflinePref>
11</MobileSettings>Wildcard Support in the Manifest File
The wildcard character * (asterisk) in the package.xml manifest file doesn’t apply to metadata types for feature settings. The wildcard applies only when retrieving all settings, not for an individual setting. For details, see Settings. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.