Is there any way to install PWA from terminal command? - google-chrome

I'd like to install PWA from https://carbon.now.sh/ automatically.
It seems chrome has some commands like
https://www.ghacks.net/2013/10/06/list-useful-google-chrome-command-line-switches/
however, there is no installation of PWA...
Any idea is appreciated.

On Edge (Chromium based) for Windows and MacOS you can do this with a policy. Your question is about Chrome without a specific OS provided, so this doesn't directly answer your question, but this might be considered as an alternative if you don't need Chrome specifically. This could be useful in an Enterprise setting.

You can use Microsoft Edge Site as App functionality to do this, Open any website and then go to the menu (3 dots top-right) then go to apps and select install this site as an app and you are good to go.

Related

Emulate an older version of chrome within the dev tools

I need to emulate an older version of chrome. I want to avoid the solution where I have to uninstall the current version and install the desired one each time I need to test my app. I came across this article but it doesn't quite answer my question. Thank you!
It's not possible to emulate older versions of Chrome from within DevTools, as is possible in IE. It's not very reliable to emulate them anyway. I've used IE 8 emulator in the past, and on occasion it has provided different results from the version I installed on an XP VM.
In theory, it should be possible to install multiple Chrome instances side-by-side because the installation directory is OS user based. However, I don't think the installations are fully isolated from one another. At least in Windows, the application would likely write to the same registry keys. In OSX, you might be alright, provided you modify the user directory path.
An alternative solution would be trying the portable versions of Chrome that appear over the Internet, usually illegally. Everything is self contained in a directory, but it will likely perform differently from normal installations. Check out PortableApps.
I think the best solution would be to set up some VMs for the different environments and browsers you want to test with. You can manually set up these, using VirtualBox or similar. Many hosted providers will allow you to spin up fresh VMs with automated tasks to install applications and services. You have to pay for these though.
If you just need to check what server returns for old browsers (not full emulation), you can set User-Agent in Network Conditions (for now, chrome 67).
Just for completeness, here is a link (September 2021) that provides historical snapshots of the 'chromium' browser, sorted per operating system and per 'position'. I needed this when I had to test on an 8-year old version of Chrome(~ium)
https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html
The URL looks legit (googleapis.com) to me, but please check for yourself before downloading. At your own risk.
Updated on 21/03/2019
I have found the following link which contains links to previous Google Chrome Versions (32bit, 64bit and Linux).
https://www.slimjet.com/chrome/google-chrome-old-version.php
Old post
Just found out that different versions of Google Chrome can be installed.
You will have to uninstall your existing version.
Download the package from here - https://www.chromium.org/getting-involved/dev-channel
Follow the instructions and install.
Hope this helps someone. The downside is you have to uninstall your current version.
Cheers!
Today you can run Windows Sandbox to avoid installing malicious programs. (Windows Professional or Enterprise Edition is required).
more info:
Windows Sandbox Doc
While I don't have a way to emulate a different version, I did find a way to have a current and an old version installed at the same time. For the 'current' version I installed Chrome Beta. Then I set the regular version of Chrome to the older version I needed.
Google's docs didn't put all the information in one place, so here are the steps for a normal Chrome user in Windows 10:
Download the Google Update policy template (alternatively Chrome Enterprise also contains the files you'll need) and unzip it.
Copy the .admx and .adml files into %systemroot%/PolicyDefinitions (.admx files go there and .adml in the language subfolder (en-US) as found in the zip you downloaded)
Open Group Policy editor and the required settings now exist
In Computer Configuration->Administrative Templates->Google->Google Update->Applications->Google Chrome,
set Rollback to target version to enabled
set the Target version prefix override to enabled and your desired version
(e.g. 86. for version 86)
Finally open Chrome, go to Settings->About and let it check for updates. Chrome will automatically download the target version and prompt you to restart.
Do note that this deletes local user profiles and recreates them from remote including redownloading browser extensions, so use with caution. Remember to go back to the normal version of Chrome by unsetting the Group Policy settings and letting Chrome update itself when you're done.

Making chrome extensions on chromium vs. chrome

Pretty simple question-- is it possible to create google chrome extensions via Chromium, and have that same extension be used with people running Chrome on different OS's?
I'm developing on Ubuntu.
Yes, it's perfectly possible; however, Chromium included in Ubuntu will probably seriously lag behind main Chrome versions.
You won't benefit from new APIs available to Chrome users, as well as be unable to test the extension for the majority of users.
Your best bet is, indeed, to install Chrome from Google's repositories.

Can you display a PhoneGap app as a Screencast in Chrome Developer Tools

Can't find an answer to this anywhere.
We have a prototype PhoneGap app that we deploy to Android devices. Using Chrome Developer tools we can debug it using the normal tools edit CSS etc and it will change the display on the device.
This is all great but I was wondering is there a way to use the screencast tool that displays your phone screen within developer tools for a phonegap app. From what I can tell it on;y seems to be able to pick up sites open in Chrome on the android device.
Any ideas would be greatly appreciated.
Thanks,
Ashley
Screencasting of WebViews is not supported at this time.
Maybe it's not exactly what you are looking for, but it helped me when troubleshooting:
Depending on the toolset you are using, you can try to access your local webserver on your development machine from the chrome browser on your android device. For this to work, the phone must be in your network (Wi-Fi).
I'm developing a PhoneGap app using Visual Studio and configured my environment to allow access from remote computers, see this blog post.
I also ran this command for my 'web site', found on the blog of Scott Hanselman:
C:\Program Files (x86)\IIS Express>IisExpressAdminCmd.exe
setupFriendlyHostnameUrl -url:http://yourcomputername:555/
Finally I was able to use the Screencasting feature, using the chrome browser from android.
Except that I was not able to use hardware features such as NFC, using the app via the browser felt the same.
For other environments, the procedure to enable remote access should be similar.
Martin

How standalone are packaged Chrome Apps?

I have a HTML5 app, that I need to redistribute as a desktop application. One solution could be Chrome packaged apps, but it seems you can only install those packages using the Chrome webstore.
Is there an easy way to distribute Chrome apps using a stand-alone installer, and without requiring the end-user to have Chrome installed?
You can install them using the .crx file given to you while packaging, but that still requires chrome. Actually, you pretty much have to somehow have chrome on the target, as the standalone apps use it's framework. Hope it helps.
The CefView example from the Chromium Embedded Framework project could server for this.

How to troubleshoot Google Chrome Sync issues?

I am using custom sync options to synchronize only some of the artifacts from a Google chrome installation - just Bookmarks, Extensions and Open Tabs. All three are working on well on my two windows computers - but on the Linux machine, I am not getting the extensions. I have tried wiping the Linux Chrome data (by removing ~/.config/google-chrome/ and re-configuring it, the the problem remains the same.
I am wondering if there are any logs that the chrome browser produces that can give me a hint on what the problem might be.
Thanks a lot
Looks like this is not a bug but a "feature", different support of extension per OS, but seems there might be hope this is fixed in future releases see:
Chrome Web Store to get multi-platform app support for Windows, Mac, Linux, Android, iOS, and Chrome OS
Other Deployment Options