I'm using the new "Enable Chrome Inline Installation" in the "Widget Generator".
When I call:
__CRI.install() from my javascript code I get the following error:
"Uncaught Chrome Web Store installations can only be initated by a user gesture. webstore:17
Installer.install webstore:17
install webstore:48
install installer.js:259"
The thing is that I call __CRI.install() from a user gesture, it seems like installer is breaking the context and by acting asynchronous.
Help get this topic noticed by sharing it on
Twitter,
Facebook, or email.
Twitter,
Facebook, or email.
-
I found the problem __CRI.install() starts with:
if (!ready) {
setTimeout(install, 100);
return;
}
Which break the gesture context in case ready==false.
And that can happen if the _CRI initialized just before it.
e.g.
var __CRI = new crossriderInstaller({
app_id:my_id,
app_name:'my_app',
chromeWebStoreRel:'my_dfsdlfhadlfkjsdalfkjsd'
});
__CRI.install(); -
-
Hello Guy:
Thanks for the feedback. I'll pass your comments back to the dev team to review. -
-
Hey Guy,
You are right - it seems that the problem is related to the setTimeout, as Google not recognizing it as response to a click ("This function can only be called in response to a user gesture, for example within a click event handler; an exception will be thrown if it is not.").
In order to use Chrome Inline Installation you must call "__CRI.install()" in a response to user action, such as click.
Can you please send me link to your website and explain to me what I need to do in order to get the installation ?
Thanks,
Shay. -
-
Calling "__CRI.install()" on user action was exactly what I did, but the problem is that setTimeout() is breaking the context.
The fix I implemented was to make sure it will never get into this code, meaning "ready" will be ready. -
-
Can you please send me link to your website that I will have a look on the solution?
I would like to better understand it for future users, thanks! -
-
-
-
-
-
-
-
We are having exactly this problem too, but, I don't understand the fix. What did you guys do to fix it?
-
-
To be perfectly clear -- we are calling CRI.install() within the onclick handler for a link (so it is definitely a user gesture), and I'm seeing this exception. Can't get it to actually work.
-
-
I was able to get past it, it turns out that you can't call new crossriderInstaller() followed by __CRI.install() in the same method. We space it out and we're getting further now.
At this point however, still nothing is happening, and there are no exceptions thrown. I've traced javascript all the way into Google's code (their own installer) and I'm not seeing any exceptions thrown. -
-
Hello Bryan,
In general, such issues may occur if you are trying to install the extension from a site other than the Chrome Store verified site.
In particular, to quote from Chrome's own mouth (so-to-speak):
For security reasons, inline installations can only be initiated by a page on a site that is verified (via Webmaster Tools) as being associated with that item in the Chrome Web Store.
Please verify that the button is on the verified site and it should work.
For more information, see https://developers.google.com/chrome/.... -
-
Shlomo,
I think we've done everything right, and it's still failing.
First of all, here is the page we are using (a simple static HTML file which you can quickly inspect) to perform the installation:
https://test-desktop.connect.pingiden...
Next, I am absolutely certain that the Chrome web store settings point to this site as a verified site. Here is a piece of a screen capture showing that option:
Can you please take a look and see if you notice anything wrong? We're at wit's end here.. -
-
Also for completeness' sake, the public Chrome web store page also correctly shows the verified site:
https://chrome.google.com/webstore/de... -
-
Hello Guy,
I can't even open to https://test-desktop.connect.pingiden.... Is this a secured site? Can Chrome Web Store access it? i.e. if the Web Store is having the same problems communicating with the site, then that's probably the reason it won't allow the installation.
How can I get into the site? -
-
Thanks Shlomo,
(This is Bryan, not Guy).
The site is not secured. I have no idea why you can't open the page, no VPN is required.
Chrome Web store, or more appropriately their webmaster tools, were successfully able to verify the site (see the screenshot I uploaded to this ticket around half an hour ago, and the link to the Chrome web store which shows the site as verified).
Try the URL again? I'm not sure what to tell you.
I also emailed directly, to support@crossrider.com, the (very short) source code to the HTML page above, maybe you could quickly inspect it? -
-
Hello Bryan,
Apologies about the name confusion. Let's continue on the support@ ticket. -
-
Thanks Shlomo. Please reach out any time, I can also chat via Google Talk or skype.
-
-
The issue appears to be on the Google end, and is a bug in the Chrome web store. I don't think it's a Crossrider issue afterall (after many many hours of troubleshooting).
For others' reference, here is the link to the discussion at Google:
https://code.google.com/p/chromium/is... -
Loading Profile...




EMPLOYEE
EMPLOYEE

