I want to login user into website with webviewer and get data from api with Web component
Problem I am facing:
When I am calling data with Web Component
The api is returning: “User need to be logged in”
So I wanted to call API data with Cookies
please check that API documentation how to get data programmatically
@Taifun Please consider full post
You can try with
@vknow360 Custom Web View extension with block to Get Cookies from url
Extension Name: CustomWebView
It is an extended version of web viewer with more customization and flexibility.Its customization and additional features make it different from Web Viewer although it uses same Web View class.
Latest Version: 7.1
Released: 2020-05-12T18:30:00Z (UTC)
Last Updated: 2020-07-01T18:30:00Z (UTC)
Requires: Android 5+
More customization options than normal web viewer
Long Click event
New window request event
Load local files and content usi…
Yes he can.
But there is no method to inject cookies in web component.(I don’t know much about headers and setters)
A workaround can be this(using webview):
login to website
get data using js
@vknow360 Please explain how to get data using JS
I don’t know much about JS so Google has helped me in this
document.body.innerHTML returns the inner html content which we see on a webpage.
Here is the result I got using it:
Can some one help me to set cookies into Web component
I request @ExtensionDevelopers to make a simple extension like this
It has been already added in v8 of Custom Web View.
I am asking it for Web Component
This component of extension don’t help you ??
But how can I send those cookies to web component
With web component you can’t do that !!
Need used Custom Web View extension or Web View Tools extension
You can hide the web view and get the cookies and do that you need to do
How can I perform functions like Web Component
with this WebViewTools extension
Why not search first ?
And next you try it !!!
If don’t work or have issue post the question here !!!
Got solution for injecting cookies to Web Component
Special Thanks to
for giving solution
Getting Cookies from CustomWebView (Extension made by
I am so Happy
Where it is ?
In CustomWebView Extension’s blocks
No Version 8 is not released
Yes version 8 is not released
he may have typed wrong number
Get and Set cookies blocks are available now