flutter_inappwebview
flutter_inappwebview copied to clipboard
TypeError: Object.hasOwn is not a function, messageLevel: 3
- [x] I have read the Getting Started section
- [x] I have already searched for the same problem
Environment
i am currently testing on ios and google pixel 3 emulator
Description
Ios work great, as in, i load up the web app using the package, perform a sign in or sign up and the user has access to their dashboard.
But Android doesn't work at all in fact the console is returns this error:
{message: TypeError: Object.hasOwn is not a function, messageLevel: 3} {message: Uncaught (in promise) TypeError: Object.hasOwn is not a function, messageLevel: 3}
Steps to reproduce
CODE
Stacktrace/Logcat
👋 @Codesait
NOTE: This comment is auto-generated.
Are you sure you have already searched for the same problem?
Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!
If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.
In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.
Following these steps can save you, me, and other people a lot of time, thanks!
What is the URL of the webpage? Have you tried plugin version 6?
What is the URL of the webpage? Have you tried plugin version 6?
Hey boss, i just tried the beta package flutter_inappwebview: ^6.0.0-beta.31 and i did necessary migrations. This time, i got an additional error;
"onReceivedHttpError" using {request: {headers: {User-Agent: Mozilla/5.0 (Linux; Android 12; sdk_gphone64_arm64 Build/SE1A.220203.002.A1; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/91.0.4472.114 Mobile Safari/537.36, Accept: image/avif,image/webp,image/apng,image/svg+xml,image/,/*;q=0.8, Referer: https://album.yeastycode.com/dashboard}, isRedirect: false, method: GET, hasGesture: false, isForMainFrame: false, url: https://album.yeastycode.com/resources/media/favicon.png},
errorResponse: {headers: {Transfer-Encoding: chunked, date: Sun, 10 Dec 2023 03:52:40 GMT, Server: nginx/1.18.0 (Ubuntu), Cache-Control: no-cache, private, Connection: keep-alive, Content-Encoding: gzip, Content-Type: text/html; charset=UTF-8}, data: null, reasonPhrase: Not Found, contentEncoding: utf-8, contentType: text/html, statusCode: 404}}