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
Related
I want to redirect chrome google translate extension settings when ı clicked the link, but there is a problem here, if I want to access google translate settings, I need to install it as an add-on first, otherwise I cannot access the link and google is blocking it. How can I solve this problem?
<a href='chrome-extension://aapbdbdomjkkjkaonfhkkikfgjllcleb/options.html'>link to example</a>.
This is the link I want to redirect on my site, but it cannot be accessed directly.
I would like to be able to open a tab in Chrome and enter something like gs://bucket-name/path/to/file and have it open the corresponding page in the GCP Web Console https://console.cloud.google.com/storage/browser/bucket-name/path/to/file. I saw there are external protocol handlers in Chrome, but I don't want to open an external application. I just want it to open another page based on the URI. I also don't want to put up any of my own servers for this simple purpose. Perhaps a Chrome Extension that can do some simple JS on the URI after I enter it into the address bar?
I think it is possible now with link you gave (works for me).
#shiv turned my attention on fact that this is question about automated link replacement under the hood in address bar when you write "gs://bucket-...". So such handler just collects address and modifies it and uses modified version to go further.
Well then looks like you need something like this Set custom protocol handler in Firefox? (in case of Firefox) but unfortunately I cannot help more.
I've got a program that generates email reports and sends to certain recipients. The email contains a table of contents with hyperlinks to bookmarks later in the email.
This works perfectly when viewing mails in the browser, e.g. on gmail.com. However, recently something seems to have changed in the Gmail mobile app, and my hyperlinks no longer work there.
When generating the email, the link is of the form:
Section 1
and the bookmark is of the form:
<a name="section_1"/>
In the browser, the link URL appears in the form:
https://mail.google.com/mail/u/0/#m_3653008429050877336_1
In the Gmail app, however, the link appears in the form:
x-thread://-90370221/435827759917983#m_3653008429050877336_1
Any ideas what has changed, and how to make my intra-document hyperlinks work again?
Orignal Answer
This functionality is not available in gmail app. Here is the link to google forum where you can confirm:
https://productforums.google.com/forum/#!topic/gmail/CdhA_3Z1yTo
You can insert link in the gmail app (like http://www.google.com) in Gmail app which is automatically converted to clickable link when you send the message but if you want hyperlink (like "click here" and when you click on it you are directed to the link to the page) you will have to do it from your browser only. There is no option available in Gmail app to do that.
The alternate solution is to use Microsoft Outlook. Add your google account in Outlook app.
In the compose section long press in the area then you get option to add hyperlink.
Answer after discussion in chat
It seems that the problem is with the gmail app version. If you want to open links received in your gmail app so that you are redirected to the location of message in the same mail you need to have minimum version 8 of gmail app. Verified this as I was able to access the links in my gmail app as well as my browser.
Platforms on which veried the links:
Android 6.0.1 - Gmail Version: 8.1.7.182107449.release
Windows 10 - Chrome: Version 63.0.3239.132
Ubuntu 16.04 (xenial) - Firefox: Version 57.0.4
To get around the Gmail app not having an option to insert a link into text (hyperlink) on my mobile device I use another mobile app to compose the email first. Currently, the only app I have discovered to be compatible with this trick is Google Docs. I find it works for typing, formatting, inserting images and creating hyperlinks.
To upload from Google Docs into Gmail I am presently only aware of the ability to highlight the planned body of the email in Google Docs then pasting it into Gmail.
Using Google Docs I am aware of the ability to carry over changes to some features of the hypertext. Such as colour, boldness, italics, size, underline. There are possibly more customizable options available before inserting what you have composed into Gmail.
I am unaware of any tricks to create a usable hyperlink of images for use in the Gmail app.
Such a feature outside the “Signature” on Gmail desktop could prove most beneficial.
I had the same issue. I was adding hyperlinks as following
Click Here
I did it to handle the possibility of https not available on the website as links are dynamic in the email. When I changed it to following then it worked on gmail app as well.
Click Here
You can’t do it in the gmail mobile app. Sorry. Also, it matters what version you have.
I found a link on these forums with a fix. Essentially they said that if you put a span inside the link, it will fix the problem. I've not yet had a chance to test it however. According to the post:
This won't work:
Bar
But either of the following will:
<span>Bar</span>
<font>Bar</font>
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.
Please take a look at this link
http://jsfiddle.net/C7Py6/3/
The last icon on google viewer's toolbar - enables user to view on new browser window and download PDF. The question is, how can I make it view only and disable download (At least disable this toolbar item). Is that possible with google viewer? or is there any other viewer that works like Google Viewer but view-only?
You can host your PDF files on Google Docs and prevent viewer downloads. To do this do followings:
Once you login into your Google Docs account at docs.google.com website, you should see listing of documents in your account. Right click specific document that you want to secure by disabling download option.
Then click on “prevent viewers from downloading” option. This will remove downloading option and other users viewing the document cannot download the document file as a whole and reproduce its copy.
Also note, since you can only prevent downloading of documents created by you, click ‘Owned by Me’ option on left side. This will display document created and owned by you. Then you can disable and prevent document downloading option for files on display.
Then you can just share this PDF on your website. IT will be view only. The code will look like that:
<iframe src="url to pdf/preview" width="640" height="480"></iframe>
This is a simple way to control all features of Google Apps http://www.saasid.com/what-we-do/saasid-for-google-apps/
Application feature control gives organisations full management of application features and functions with no complex changes to theapplication back-end. Tabs, menu options, buttons and links can be can be disabled or removed from view, or their use can simply be monitored and logged. Application feature control features for Google Apps include:
Gmail can be made corporate-only,
File attach to Gmail messages can be removed,
Chat boxes removed,
Sharing options removed from menu or document editor in Google Drive
This technique will still allow the user to "make a copy" and with ownership this brings they can then download as they please. Not tested this, but I'm pretty sure I'm right...