Label Chrome Packaged App as "available for android" - manifest

On some apps in the Chrome web store you see 'available for Android Get it', for example Keep:
https://chrome.google.com/webstore/detail/google-keep-notes-and-lis/hmjkmjkepdijhoojdojkdfohbdgmmhki
I have tried to find instructions of how to label apps like so.
I know you can add the "Runs Offline" label by adding 'offline_enabled: true,' in the manifest file, but I have not found anything similar for 'available for Android'.
Does anyone know how this is done, or how it works (if it is an automatic label or anything)?
Thanks!

It has to have same application name and it will be automatically done for you.
Check one of my app,
https://chrome.google.com/webstore/detail/143pets-cute-videos/bibagdnophfdhenhmhkjaoniginmgcka and links to
https://play.google.com/store/apps/details?id=com.fedmich.pets&hl=en-US
There is also official posts about this:
https://plus.google.com/+FrancoisBeaufort/posts/5fhFgvmAGYT
https://groups.google.com/a/chromium.org/forum/#!msg/chromium-apps/jnvqM0rqu-0/BkEgRSOvz3cJ

Related

Customize the (about:home) page in google chrome

I want to know if its possible to customize the way your default google chrome look locally on your computer. I am talking from a developer's point of view and not user(ie not to change the home page by going into chrome setting).
I can change the UI by using the chrome f12 option locally. As chrome is installed on my machine then there should be an index.html or something alike file present to render chrome as it does. I want to access that file if possible.
Thanks
you might be able to find some various files, so i would suggest looking through the following folder. C:\Users\MYUSERNAMEHERE\AppData\Local\Google\Chrome\User Data\Default
or C:\Users\MYUSERNAMEHERE\AppData\Local\Google\Chrome\User Data\ as these are the ones that contain your chrome installation, there maybe another folder but this is always the one i have used when developing extensions..
Otherwise i think you will be stuck with the extension part, i myself would have a look at this if you really need.. But that could be a week before i get the chance.
If your looking to deploy a custom google chrome, so they dont need to install extensions. Try the following google term: deploy custom chrome
https://developer.chrome.com/extensions/external_extensions
But editing it directly with just finding a single html file / style i dont think is as easy as it would need to load certain objects into memory and i think they are a little more complex than a plain text file.
EDIT - Looks Like Its Extension Only Now
Had 5 minutes and did a quick google, there was a point where you could use custom style sheets for v32 and below but that was removed https://src.chromium.org/viewvc/chrome?revision=234007&view=revision
So you either need to work with firefox or build an extension.. I could not see any files/folders that would do what you need. So yea i'd start looking at extensions.

How to open Chrome App from web link

I'm trying to create just a simple html link to open a Chrome app when clicking it. Lets use the following example:
I have installed the app found at https://chrome.google.com/webstore/detail/videostream-for-google-ch/cnciopoikihiagdjbjpnocolokfelagl
If I open the app from the Chrome menus, it will open the app in a new browser tab, displaying chrome-extension://cnciopoikihiagdjbjpnocolokfelagl/app.html as the URL in the address field.
So, naively I thought that I could just specify that URL to make it open if the link is clicked, i.e:
Link to the installed Chrome App
But that does not work. How should I do to link correctly to the (installed) app?
If you were in control of the app in question, you could use externally_connectable property and listen for requests to launch your app.
But it seems like you don't control that app. Normal webpage code is unprivileged and cannot call chrome-extension:// URLs and the like.
You could potentially make a launcher extension. Using the management API you can launch the app with
chrome.management.launchApp("cnciopoikihiagdjbjpnocolokfelagl");
and that can, again, be triggered via web-to-extension messaging using externally_connectable. But that obviously requires that your users have two distinct Chrome add-ons installed, the app in question and your launcher shim.
url_handlers
If you are the owner of the app I recommend using url_handlers.
These need to be registered in your apps manifest.json.
...
"url_handlers": {
"openApp": {
"matches": [
"https://www.yourVerifiedDomain.com/openApp"
],
"title": "Open App"
},
}
...
Then you could launch the app with a simple link anywhere on the web or in an extension.
Open App
management permission
If you are not the owner of the app you'll need the management permission as Xan already pointed out:
chrome.management.launchApp("<appId>");
I have an alternative solution. My use case is I've written a Chrome App, that I need customers to use once, and only once. I was trying to figure out a friendly way to preclude these steps:
Click on the three bar Icon in Chrome
Click on More Tools
Click on Extensions
Scroll to the bottom, click on Get More Extensions
blah, blah, blah.
Instead you can look up your custom Chrome App at the Google Chrome Web Store, and get the web store link.
Heres the link, using the Chrome App mentioned in the original question above.
https://chrome.google.com/webstore/detail/videostream-for-google-ch/cnciopoikihiagdjbjpnocolokfelagl
That's pretty handy if you've never seen the Chrome App before. For my situation, that's all I really need. Info offered here (1.5 years after original question answered) in case somebody else has a similar need. And here's the link to the Chrome App store:
https://chrome.google.com/webstore/category/apps

Is there an example of how to add Replace to Google Docs

Is there an example anywhere of how to use the Document apps-script API to add a button to the Google Docs menu, when it is clicked bring up a web page from my web app that prompts the user for 2 strings, then on OK it does a search & replace on the open document?
I don't need to add search/replace per-se. I just figure this is the simplest example of writing an Add-In to Google Docs that edits the open document.
thanks - dave
As it stands, this is not possible. I think this issue (which you might like to star so that you can receive updates in the thread) best describes it. Summary in post #7:
This feature request is to add the same script functionality to a
document as there is in a spreadsheet. ie menu items etc.
A recent video by google (see their blogs) hints that this will be soon available.
In the meantime u can ask for the document url from your published script interface.
If you make a googledrive.com client app you can even use the new goglepicker to select the doc.

Is there anyway to install an extention without visiting to google app store?

Is there anyway to install an extention without visiting to google app store?
For example I want visitors, can install my extention just one clicking a facebook ad or a banner?
Is it possible?
I read some article that mentioning about to verified site ownership to do this. But I want to make advertisement on facebook so I wouldn't be owner of the web page...
Does anyone have information on this subject?
Thanks.
Right click on the Chrome shortcut
In the Target field, add --enable-easy-off-store-extension-install after what's already there, let a space before
Save and start Chrome
You're probably looking for inline installation, performed via chrome.webstore.install.
In your webpage:
include <link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/itemID">, where the URL is the address of your extension
then. call chrome.webstore.install().
Unfortunately, you can't do either of those things on a basic Facebook page, but you could do it on a web page you can fully control.

Google Chrome - Extension issues

I'm currently developing a chrome Extension and i wanted to know, how it's possible to put more then one button on a Extension. Because when i add for instance 2 reference on the manifest.json, it only display the last one.
I also wanted to now how it's possible to add an input text instead if a button.
Thanks in advance.
No it is not possible, you can only add one browser action per extension. If your extension requires two browser actions, you should deploy two extension, where one of the extensions depends on the origin.
You can use chrome.extension.onRequestExternal.addListener to listen for external requests coming from your extension, and send messages between them with: chrome.extension.sendRequest
Hope that helped!