How to Set Ignore-Storage Property on Haptik bots
- Getting Started
- Bot Building
- Smart Agent Chat
- Conversation Design
-
Developer Guides
Code Step Integration Static Step Integration Shopify Integration SETU Integration Exotel Integration CIBIL integration Freshdesk KMS Integration PayU Integration Zendesk Guide Integration Twilio Integration Razorpay Integration LeadSquared Integration USU(Unymira) Integration Helo(VivaConnect) Integration Salesforce KMS Integration Stripe Integration PayPal Integration CleverTap Integration Fynd Integration HubSpot Integration Magento Integration WooCommerce Integration Microsoft Dynamics 365 Integration
- Deployment
- External Agent Tool Setup
- Analytics & Reporting
- Notifications
- Commerce Plus
- Troubleshooting Guides
- Release Notes
In order to set the Ignore-storage property while initializing Haptik bots, you can use the following:
For Android, you can set ignore-storage using the following snippet:
ignoreStorage = true
Similarly for iOS,
builder.ignoreStorage = true
Also, the implementation for ignore-storage would be while adding the init settings:
For Android:
val initData = InitData().apply { primaryColor = "#420420" composerPlaceholder = "Type message...." noHeader = true initializeLanguage = "en" ignoreStorage = true } HaptikSDK.init(applicationContext, initData)
For iOS,
let customSetting = HPCustomBuilder.build { (builder) in builder.composerPlaceholder = "Type message...." builder.noHeader = true builder.privacyPolicyUrl = "https://policies.loremipsum.com/privacy?hl=en-US" builder.initializeLanguage = "hi" builder.loaderAnimate = true builder.primaryColor = "#420420" builder.ignoreStorage = true } HPKit.sharedSDK.setCustomSettings(settings: customSetting)