+

Search Tips   |   Advanced Search

Enable the Simple Data Sharing feature for hybrid applications

Update the application descriptor to enable the Simple Data Sharing feature on hybrid applications.

To enable simple data sharing, we modify the application descriptor.

  1. Add an Android or iOS environment.

  2. Add the Simple Data Sharing option.

  3. Enable the Simple Data Sharing option and specify an application family name.

    For Android, the application family name must be in the form of com.xx.yy.

    Enable or changing the MobileFirst application family settings require prior Android applications to be uninstalled. Upgrading an application that modified its sharedUserId is not allowed by the Android operating system for security reasons.

  4. Save.

  5. Build all environments.

  6. Ensure that applications that are part of the same family are signed by the same signing credentials.

  7. For Android environments, follow these steps.

    1. Before you install the newly built application on the device, uninstall any prior applications from the device that were using a different family name value.

    2. Install the newly built application on the device.

  8. For iOS environments, follow these steps.

    1. Ensure that applications that are part of the same family share the same Application ID prefix. See Manage Multiple App ID Prefixes in the iOS Developer Library.

  9. Repeat the steps for all applications to make part of the same application family.


Results

We can now use the Simple Data Sharing JavaScript APIs to share simple strings among the group of applications in the same family. See Simple Data Sharing JavaScript APIs in the WL.Client class.


Parent topic: Enable the Simple Data Sharing feature