Skip to content

Instantly share code, notes, and snippets.

@miguelmontemayor
Created April 3, 2019 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miguelmontemayor/c499a5491bab425eef315dc426590631 to your computer and use it in GitHub Desktop.
Save miguelmontemayor/c499a5491bab425eef315dc426590631 to your computer and use it in GitHub Desktop.
// Use PackageManagerCompat to access Cookie API.
val packageManager = InstantApps.getPackageManagerCompat(this)
val cookieData = packageManager.getInstantAppCookie()
// Clear the cookie data once it has been read to clear it.
packageManager.setInstantAppCookie(null)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment