webView is not working properly.

356
3
03-10-2021 04:44 AM
x_d
by
New Contributor III

Hi there,  So on my app i'm using webview to open url in browser within app. Whenever i'm trying to upload a image on that site then it shows me this error

Spoiler


An unhandled type 'QList<QUrl>' was provided in FilePickerController::accepted(QVariant)

 

Item {
    height: 700
    width: 400 
        id: app
            WebView {
                anchors.fill: parent
                url: "https://stackoverflow.com/questions/37935657/refused-to-load-the-image-because-it-violates-content-securtiy-policy-cordova"
            }
}

I have given a link from stackoverflow just for testing purpose.  

Tags (3)
0 Kudos
3 Replies
ErwinSoekianto
Esri Regular Contributor

@x_d 

 

There is a chance that the website is not allowing upload image operation from "webview" or iframe environment. 

Can you try using BrowserView? This is a little bit different than webview, it is using native browser. We have a sample in AppStudio Desktop, where you can simply change the URL to test. 

 

Erwin. 

0 Kudos
x_d
by
New Contributor III

@ErwinSoekianto  even BrowserView doesn't work. I have tried that as well

0 Kudos
MarthinusvanderMerwe
New Contributor

We are building a mobile application and do not want to use browser view as it allows you to break out of the app into the device browser. Is there no solution to make Webview work? Browser view does work but it is not suitable for our use unless there is a way to suppress the header and footer in order for the user to not navigate away from the web page. 

0 Kudos