Skip to content

Privacy settings

Roman Kochkar edited this page Mar 4, 2020 · 2 revisions

Mobile Messaging SDK has several options to provide different levels of users privacy for your application. The settings are represented by PrivacySettings object and may be set up as follows:

mobileMessaging.init({
        applicationCode: ...,
        android: ...,
        ios: ...,
        privacySettings: {
            carrierInfoSendingDisabled: true,
            systemInfoSendingDisabled: true,
            userDataPersistingDisabled: true
        }
    },
    () => {
        console.log('MobileMessaging started');
    },
    error => {
        console.log('Init error', JSON.stringify(error));
    },
);
...
  • carrierInfoSendingDisabled: A boolean variable that indicates whether the MobileMessaging SDK will be sending the carrier information to the server. Default value is false.
  • systemInfoSendingDisabled: A boolean variable that indicates whether the MobileMessaging SDK will be sending the system information such as OS version, device model, application version to the server. Default value is false.
  • userDataPersistingDisabled: A boolean variable that indicates whether the MobileMessaging SDK will be persisting the User Data locally. Persisting user data locally gives you quick access to the data and eliminates a need to implement the persistent storage yourself. Default value is false.
Clone this wiki locally