Changing icon in chrome packaged app in status bar - google-chrome-app

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.

Related

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?

B4A - webview using chrome browser

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

Making Chrome web app standalone desktop program

Google announced that they drop support for web apps in Chrome.
Basically, web app is a local HTML/CSS/JS app that runs in a separated custom "standalone" Chrome window.
Is there any way (preferably easy), to convert this web app to a real desktop app that not depend on Chrome in anyway? Using maybe NodeJS? If yes what is the right way to do it?
Thanks.
You could try one of these tools:
https://applicationize.me/
https://www.bzgapps.com/coherence
https://fluidapp.com/ (for Mac only)
Don't know about "easy", but it seems to me that the natural evolution is to Electron or NW.js, and both of these are mentioned in the Google blog article on this subject. (I'm moving to Electron.) Both have advantages over Chrome Apps, mostly that they are true desktop applications. To cite one example, you can now manipulate the menu bar, something out-of-bounds for Chrome Apps.
Pure JavaScript code in your Chrome App, such as anything to access the internet, should move over directly. Same for much UI stuff, as you're still using a browser window for the UI. The app will, however, have to be restructured.
Added Note: Chrome Apps ran on 4 platforms: MacOS, Windows, Linux, ChromeOS. Electron and NW.js apps won't run on ChromeOS. So, the ability to write a four-platform completely binary-portable app is going away.

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

Open with Google Chrome app

Is it possible to make a Chrome app handle certain types of extensions?
For example, setting a Chrome app to be launched when you double click a .txt file, instead of launching the Chrome app first and browsing for the file.
Yes, on ChromeOS via file_handlers. On other operating systems, not yet.
The bug to track this work on Windows: https://crbug.com/130455
Linux: https://crbug.com/138665
I'm not sure if / where there is a mac bug but it is also planned.
This should help you : http://www.computerhope.com/issues/ch000128.htm
Especially the part at the end of it.
In the future - Google it, it was like the 2 result.