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 | Open in Thunkable LINK |
Get the .aix | Download |
Click-to-Copy Link | com.vishwas.ExtraComponents.aix N/A |
Donate to Developer | |
License | CC 4.0 BY ND N/A |
http://community.thunkable.com/uploads/default/original/2X/f/fd022c6df60ed822430d1b3b104eba47b5929e13.aix
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
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
Returns true if there are cookies in the current context, returns false if there are no cookies set.
Returns Boolean(True or False)
Returns a String with the cookies from the specified URL, if there are no cookies this method returns an empty string.
Returns String
Sets a cookie for the specified URL in the current context.
Returns Nothing
Events
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.
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.
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