My Requirement:
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
1 Like
Taifun
July 16, 2020, 6:46pm
#2
please check that API documentation how to get data programmatically
Taifun
@Taifun Please consider full post
You can try with @vknow360 Custom Web View extension with block to Get Cookies from url
1.Introduction
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+
2.Features
More customization options than normal web viewer
Long Click event
New window request event
Load local files and content usi…
vknow360
(Sunny Gupta)
July 17, 2020, 2:28am
#5
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
request data
get data using js
1 Like
@vknow360 Please explain how to get data using JS
vknow360
(Sunny Gupta)
July 18, 2020, 4:11am
#7
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:
My blocks:
2 Likes
Can some one help me to set cookies into Web component
I request @ExtensionDevelopers to make a simple extension like this
vknow360
(Sunny Gupta)
July 21, 2020, 8:09am
#9
It has been already added in v8 of Custom Web View.
2 Likes
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
@jarlissonlira2 for giving solution
Getting Cookies from CustomWebView (Extension made by
@vknow360 )
I am so Happy
3 Likes
Vivekjain:
Where it is ?
In CustomWebView Extension’s blocks
1 Like
Vivekjain
(Vivekjain)
July 23, 2020, 6:24pm
#19
No Version 8 is not released
1 Like
Yes version 8 is not released
he may have typed wrong number
Get and Set cookies blocks are available now