This extension allows you to get, set and clear all cookies in a Web Viewer within your app.

Overview

Extension Developer Luke Gackle
Clone Starter .aia LINK
Get the .aix Download
Click-to-Copy Link N/A
Donate to Developer
License N/A

Thunkable Community

If you have any questions about the Webview Cookie Tools extension then head on over to the Thunkable Community where you’ll find lots of amazing people who are happy to help you out.

Installation

If you need any help installing an extension then take a look at our “How to Install an Extension” guide.

Blocks

Procedures

ClearCookies

Clears all cookies from the current app context. This method is backwards compatible with Android versions prior to API level 21(Android Lollypop) however the callback “CookiesRemoved” will not fire on earlier versions.

Returns Nothing

HasCookies

Returns true if there are cookies in the current context, returns false if there are no cookies set.

Returns Boolean(True or False)

GetCookies

Returns a String with the cookies from the specified URL, if there are no cookies this method returns an empty string.

Returns String

SetCookie

Sets a cookie for the specified URL in the current context.

Returns Nothing

Events

CookiesRemoved

This event fires when cookies have been removed from the current context. Note this event will not fire for versions of Android prior to API level 21(Android Lollipop). The boolean value isCookiesRemoved relates to whether cookies were removed, if there are no cookies set this returns false.

CookieSet

This event fires when a cookie has been set, the boolean value isCookieSet relates to whether the cookie was set successfully.

Troubleshooting

Example App

This sample code shows how easy it is to get, set and clear cookies in your app.

Sample Code

Want to Help?

There are lots of great extensions being created and updateed everyday. Keeping this site up to date is a huge task. If you want to help out find out more in the Thunkable Community


Post written by: Luke