How to set the cookie policy for the Immersive Reader
The Immersive Reader will disable cookie usage by default. If you enable cookie usage, then the Immersive Reader may use cookies to maintain user preferences and track feature usage. If you enable cookie usage in the Immersive Reader, please consider the requirements of EU Cookie Compliance Policy. It is the responsibility of the host application to obtain any necessary user consent in accordance with EU Cookie Compliance Policy.
The cookie policy can be set through the Immersive Reader options.
Enable Cookie Usage
var options = {
'cookiePolicy': ImmersiveReader.CookiePolicy.Enable
};
ImmersiveReader.launchAsync(YOUR_TOKEN, YOUR_SUBDOMAIN, YOUR_DATA, options);
Disable Cookie Usage
var options = {
'cookiePolicy': ImmersiveReader.CookiePolicy.Disable
};
ImmersiveReader.launchAsync(YOUR_TOKEN, YOUR_SUBDOMAIN, YOUR_DATA, options);
Next steps
- View the Node.js quickstart to see what else you can do with the Immersive Reader SDK using Node.js
- View the Android tutorial to see what else you can do with the Immersive Reader SDK using Java or Kotlin for Android
- View the iOS tutorial to see what else you can do with the Immersive Reader SDK using Swift for iOS
- View the Python tutorial to see what else you can do with the Immersive Reader SDK using Python
- Explore the Immersive Reader SDK and the Immersive Reader SDK Reference
Feedback
Submit and view feedback for