B4A - webview using chrome browser - basic4android

In the WebView that is based on default browser of android my website isn't loading correctly, How can I load it using chrome at least in the case that chrome is installed?
Note that I don't want execute chrome browser I want to embed it inside of the application layout. Any ideas?

I think what you are asking is not possible. The default browser used within the webview is defined within the Android OS so your only option if you wanted to use Chrome is via an intent which would open it externally

Related

Is there a way to run flutter project on mobile browser?

I am trying to make a website using flutter and want to test it on a mobile browser. Is there any way to run the project on a mobile browser?
I think you should use your browser Inspector and then use toggle device toolbar to set browser size to your intended mobile size.
Or you can get web output of your website and put it on some server (like Github-pages) and then see your website in a real mobile browser.
But I suggest the first way more.

Use a browser to open the url and enter the incognito mode

Use url_launcher to open the url in flutter, but I want to open it in incognito mode, what do I need to do, thanks
I am using an Android device
Case A: If you mean Chrome on Android: It is impossible, even if you are writing native java code: How to open a web page in Google chrome incognito from android app.
Case B: If you mean any browser on Android, actually some browsers does not have such a incognito mode. For those browsers which supports incognito mode, you may try to search for that particular browser.
Actually, why do you want to open incognito? Maybe you can just use the in-app browser package of Flutter, instead of opening an external browser.

What browser opens a PWA when it is launched from home screen app icon

I am examining PWA and Web Components technologies recently. As far as I have learned now Web Components is a new suit of tech,
Custom Elements, Shadow DOM, HTML Templates and HTML imports. Together with those Web Components enabling techs Web App Manifest, Service Workers, and certain performance improvement techniques used to make what is called as Progressive Web Applications.
What I wonder is when one "Adds to Home Screen" an application in a certain web browser what is the browser that opens it when it is launched from its home screen icon? Is it the browser it has been added to home screen from, or it is the default browser of the system no matter which browser it has been added to home screen from, or it is just a generic web view available on the host operating system at the moment like the one used in native web applications?
Lastly, is it possible for a developer coding her/his app to choose one?
Currently, for me, these combinations open a new "Standalone" window
I believe Android/Chrome is the only one that installs a WebApk
All the others are just shortcuts to open your website in that browser without the normal browser navigation items
I know of no options for the developer for how the shortcut opens your PWA
Android 8.10 - Chrome 67
Android 8.10 - Chrome (beta) 68
Android 8.10 - Edge 42
Android 8.10 - Opera 43
iOS 11.4 (simulator) - Safari
As test I created app shortcut of site https://pwa.rocks from browser:
Brave
Firefox
Chrome
and found that there were 3 different shortcut created for each of the browser. Launching each shortcut resulted in opening the respective browser that created it.
I believe there is no way of changing the default browser to launch the app by coding something in the app. I could not find a way of doing that, if someone knows how to do it, I will be interested to know about it
Here is similar question: What browser will PWA (Progressive Web App) use after adding to home screen?

Chrome Inspector shows Android Webview in AVD but not on actual device

I have an Android app with a WebView which shows a simple web page. If I run the app in Android Studio's AVD (virtual device), I can inspect the WebView in Chrome Inspector. However, if I run the app on my device, I can't see the WebView. I can see Facebook (com.facebook.katana) and I can see all my Chrome tabs, but the WebView is missing.
In the past, I have been able to see the WebView on my device as well but this stopped working a few weeks ago. (Developer tools are active and USB debugging is active)
Can anyone help me figure out why the WebView is not inspectable in Chrome Inspector?
Make sure you are calling WebView.setWebContentsDebuggingEnabled(true); in your application (see https://developer.chrome.com/devtools/docs/remote-debugging#configure-webview for full info). AVD runs a "debug" Android image, where debugging of WebViews is enabled by default. On regular (so called "user") images you need to have it enabled by your app.
Another point to consider is that you need to create at least one WebView instance in order to see your app listed in chrome://inspect.
For me...the DeVTools window is blank...ive tried this for both our app and viewing Chrome through the devive

Changing icon in chrome packaged app in status bar

Is it possible to update icon in runtime in chrome packaged app?
I was searching for a long time, but could not find anything (outside changing the icon for chrome extension using browserAction.setIcon or pageAction.setIcon).
No it isn't.
Chrome Platform is not mature at all.