How to use cookies on the webview?

Good afternoon,

I developed an application that is basically just a webview. The user logs in and browses the app normally. The problem is that when he exits the application and then comes back he asks to log in again, causing that every time the user closes or minimizes the application, he will have to log in again. How do I resolve this situation?

Hi,

See the localstorage object in HTML5

Halo, can you kindly show some sample of blocks how to do it?

This is accomplished by setting cookies in your html, not blocks.

You could use the local storage or a stored variable to accomplish the same and pass through to the page using the webviewer and JavaScript injection BUT if you’re going that far, you may as well learn how to write and recall a cookie.

1 Like