Does Google Chrome have APIs to access its downloads page? - api

Am I able to "tap into" Google Chrome's Downloads page through an extension/add-on? I want to write an extension that needs the file names (or paths) of all the files that are currently being downloaded by the user. Will this possible? What APIs should I be looking at? It is quite tricky to search for this and I don't know where to begin.

No I can not find a Google Chrome API that will allow you to see the files that are currently being downloaded.
There are a number of experimental APIs, that alow deep integration with the browser here bt none that provide the information you require:
http://code.google.com/chrome/extensions/dev/experimental.html

Not until Chrome 30.
http://peter.sh/2013/08/webgl-and-device-motion-for-android-port-forwarding-and-named-grid-areas/
It looks like Chrome extensions download's api will be released with chrome 30, and has been marked stable according to Peter Beverloo's blog.

A bit late but I think it is possible now with the chrome.downloads API:
http://developer.chrome.com/extensions/downloads.html

Related

How to get publicly accessible crashlytics report url?

I want to share my crashlytics crash report to some 3rd parties.
How can I get a publicly accessible url like below?
http://crashes.to/s/419b5b28766
I am bit new here, is it a old deprecated crashlytics feature?
I don't seem to find in my fabric crashlytics dashboard.
Zubair - from Fabric/Firebase. Great question. We deprecated that share link feature, so those won’t be accessible anymore. The decision to drop support for it was based on customer feedback, and because we don’t plan to carry over the share links feature over to Firebase.
Definitely not ideal if you were using that feature a lot, but as a workaround I recommend downloading the stacktrace and issue details with the "Download .txt" file button and sharing that instead.
Downloading the stacktrace and issue details with the "Download .txt" file button was part of the Fabric.io. In Google Firebase, using the BigQuery is the best way to get that data. To to that make sure, you have enabled the BQ Integration under Project Settings > Integrations > BigQuery

Will the Add-ons disappear and be useless for Google apps on 2017-2018?

I was trying to publish a new version of an Add-on that was already created, but when I tried to publish it, in the Developer Dashboard and on the top of the page a warning message was shown:
As of November 21st, 2016, all newly published packaged or hosted apps are restricted to Chrome OS, and are not available to users on Windows, Mac or Linux. Existing apps will continue to be available on all major platforms and will continue to receive updates. - More Info
Note: This change does not apply to Google Drive Apps or Add-Ons for Google Apps.
So if you click on the "More Info" button you will see more additional information.
So all of this should be a problem to me because I have important applications that I need everyday, so I wonder if there is any other alternative way to keep working with add-ons.
Thank you!
AFAIK, this change (if Google decides to proceed with it) would only apply to Chrome Apps (see my answer here).
In the Chromium Blogpost (also the link for More Info in your post), it mentioned:
In the second half of 2017, the Chrome Web Store will no longer show Chrome apps on Windows, Mac, and Linux, but will continue to surface extensions and themes.
Add-ons weren't specifically mentioned, but as already included in your post, Add-ons that are for Google Drive Apps or any Google Apps in general (e.g. Docs, Sheets, etc.) are the exception.
If you're add-on is associated with a non-Google App, it is possible that you will be affected with the change. Seeing as the Chrome App will be removed, the associated Add-ons would follow.
You probably already know the differences between a Chrome App, an Extension, and an Add-on, but for future readers that are not familiar, might as well post this link to a YouTube video that explains Apps vs Extensions vs Add-ons.

Working with multiple APIs for Multi-platform apps

I currently have a Chrome extension that uses Chrome's APIs and plan on making a Microsoft Edge version once it opens up as well. My question is how do you work with the multiple API's?
For example, I use the following to check if the extension has just been installed or not:
chrome.runtime.onInstalled
I'm assuming for Edge it would be something like:
edge.runtime.onInstalled
What's the best way to work with both of these? Do I just duplicate the code within the file where there is a copy of the code for one and the other and presumably the browser will ignore the other browser's code? (doesn't sound like the good option)
Or is there some cross-browser framework that I should use instead?
Or is there some other solution?
And please forgive me, this is my first entry into building extensions/apps, I'm generally just a Web Designer.
Thank you!
All browsers support or
chrome.runtime.onInstalled
or
browser.runtime.onInstalled
So, the right way is to start scripts in your extension with this code:
var browser = browser || chrome
And then use browser, for example:
browser.runtime.onInstalled
(I'm sorry about my english)
Edit:
Chrome and Opera support chrome and not browser.
Firefox support chrome and browser.
Edge support browser and I don't know if it support chrome.
Anyway, my solution work in all browsers.
Update (5.8.16):
Edge support browser and not chrome.

Adobe air - download links not working

I'm trying to turn a website of mine into an executable for Windows with Adobe Air.
Everything seems to be in order, but I couldn't quite figure out how to save a file from a download link.
I saw this answer that is suggesting that this is not supported by air, but it is possible to download links via an installed browser (IE for example?)
I also tried to search the official documation and found that there are loading external data possibilites but as I didn't see a way to save the incoming result locally, i couldn't get that to work.
1) How can I accomplish this? Are there working code examples available anywhere?
2) How can I make files download on a web browser from an AIR app?
3) What other options do I have?
Thanks a lot.
I couldn't get a download to work with the HTMLLoader class too.
The only working solution might be to start the download with a browser.
var url:String = "site.com/download.zip";
var request:URLRequest=new URLRequest(url);
navigateToURL(request, '_blank');

Launching an executable from the web browser via link

I've seen a ton of games and what not opening their applications using links like "game://15.64.15.64:25876" or something.
I want to be able to launch my game's .exe from my website for users who installed it, and for it to work on any browser; At the same time I want to be able to pass a parameter (just 1).
What registry values would need to be added/modified for this to work for all browsers? If there's extra steps to setting it up in all browsers, can you explain these steps? Other questions I've found didn't quite help or worked only in IE. I require Firefox, Chrome, and IE at the least.
A similar question was asked here:
How do I make the website execute links?
You would end up with a structure like this in your registry:
HKEY_CLASSES_ROOT
game
(Default) = "URL:Game Protocol"
URL Protocol = ""
DefaultIcon
(Default) = "game.exe,1"
shell
open
command
(Default) = "C:\Games\YourGame\game.exe" "%1"
See this article on MSDN for details:
Registering an Application to a URI Scheme
As mentioned by OP, the above approach only works in IE. Here are some thoughts on how to make it work in other browsers:
Chrome: Is it possible to open custom URL scheme with Google Chrome?
Firefox: Writing a Firefox Protocol Handler
One way I can think is download a file from browser ( gamesession.gme or your extension)
and set your game as the default application for that extension.