Skip to content

Instantly share code, notes, and snippets.

@miguelmontemayor miguelmontemayor/MyApplication.kt Secret
Last active Apr 8, 2019

What would you like to do?
Storing cookie data
// Cookie data is a simple byte array.
val cookieData: ByteArray = byteArrayOf()
// Use PackageManagerCompat to access Cookie API
val packageManager = InstantApps.getPackageManagerCompat(applicationContext)
// Ensure that the cookie data will fit within the store before setting
// the value.
if (cookieData.length <= packageManager.getInstantAppCookieMaxSize()) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.