How do you handle privacy policy pop up window?

When using webviewer and opening a html page after login i always get first the privacy policy popup window for cookies...
Is there a way to accept this window with JS? I always accept.
Isnt the DSGVO regulation in Germany only for webpages, not for apps?

You are loading a web page in a webviewer, so you get the cookies/privacy popup. If you are lucky, the native webviewer will store cookies and prevent it presenting again, if not, you may need to modify the webviewer with an extension to accept the setting when you accept.

Tim, which extension can do this?

webviewextra

customwebview

Ok, i will check.

Btw: Is the hover help text correct for the
Set Webviewer1.WebViewString?
Shouldnt it be Specifies... instead?

The else if block isnt working at my WebviewStringChange block.
Whats wrong with it?

Maybe you need another test if the value is neither?

image

You also do not need the green block, the contains block returns true or false.

You should also confirm that the webviewstring change is coming back from the web page.

To show privacy policy you can use built in Notifier component and show policy in Message Dialogue.

You mean i need global value variable or is the internal value ok from webviewstringchange?
grafik

Can i only get one value from webviewstringchange? I want to read one string from 1st html and 2nd from other hmtl page.

No, my blocks are just an example.

You should set a marker for each webviewstring you want to return - e.g. wvs1:value, wvs2:value or you could set a variable when you call the respective html file.

The customwebview extension i found is from 2023, do you guess it will still be updated for latest AI2 SDK's? The author sunny was also suspended in kodular community

Dont know how

You could do something like this:

Now i want to set a variable to a js-string and use it for an if-block.
grafik
AI has no return value block for that, does only the webviewstringchange event work?

Yes, use the webviewstringchange block.