Skip to content

Privacy settings

Alexander Boldyrev edited this page Nov 8, 2022 · 1 revision

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
        }
    },
    function(error) {
        console.log('Init error: ' + error.description);
    }
);
...
  • 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