How to change the GUI of a website via Google Chrome App - google-chrome

I am currently working on a project, that when installed from the Google Chrome webstore, it would replace the Google Drive's GUI, with a custom one. Also it would use the same custom GUI in a external Window (this utilizes the Offline feature of Drive). I am wondering on how to use my custom GUI, and replace the Google Drive's one.

Related

GAS Google Drive

this is question related to google apps script and Google Drive.
Is there any way to construct a URL for a file that causes opening that file in desktop application?
I'm basically asking whether it is possible to access "Open With" application list programmatically and pick up one from listed applications.
Now, when I get the URL, it causes opening another screen where I need to pickup an application and only then it starts opening. I would like to skip that step and open the file directly in a given desktop application.
Thank you!
Petr
"Open Width" requires having Google Drive for Desktop installed, having installed a Chrome extension and using Chrome.
Considering the above, since Google Apps Script server side code hasn't access to user environment it's not possible to
"Open With" application list programmatically and pick up one from listed applications.

Can i use Google app script for developing google chrome extension

Can we publish google app-script code in to a chrome extension tool. So far we developed a web app from app-script, which is working as a web application. What need to be done to convert it in to a chrome extension from google app-script Editor. Appreciations are shared for valuable suggestions.
I've developed both GAS Web Apps and Chrome Extensions and I can say with certainty that you cannot use Google Apps Script's GUI editor to develop a Chrome extension. They are two very different beasts.
For one, Google Apps Script, uses its own flavor of server-side javascript. Plus it leverages libraries and services unique to its platform.
A Chrome extension uses client-side javascript and it too has its own libraries and services.
Moreover, they handle user authentication a bit differently (even though they are leveraging the same OAuth2 flows under the hood).
But you might be able to integrate the two. You should be able to make POST requests to a Web App from a Chrome Extension, so that's one approach.
However GAS scripts are limited by quota restrictions so you might be better off rebuilding your app from the ground up as a self-contained Chrome Extension (the better option in my opinion).

chrome.management functionality in apps?

I'm new to making chrome apps and extensions, working on my first app. I need access to alist of the installed apps on chrome with their relevant details and icon, so I used chrome.management. However, when I try to use it in my app, I get the error
'management' is only allowed for extensions and legacy packaged apps,
but this is a packaged app.
Looking at the api page, chrome.management is indeed not listed under the "Apps" tab, but the "Extensions" one.
Is there any other way I can have access to the information in an app? Chrome app launcher did it... not sure if there were any super secret special permissions involved.

Google drive sdk app not showing in open with list

I have a google drive app. It is setup to be a drive app and the open url is given in the app details.
Everything works well, but for some reason when the user installs the app it is not displayed in the "Open with" list of apps.
the app is setup to use google documents and docx (this is given in the default mime types).
I also had pdf in the mime types and it was working for them I switched it off and it was correctly turned off.
Any idea why an app might not be showing up in the "open with" menu by default?
Please get back to me as this is having a huge impact we are getting a lot of questions from users that are not being able to find the app..we have over 1000 installations already.
The app also has a launch icon setup on the manifest file. I don't supposed this affects it's behaviour on drive?
"launch": {
"web_url": "http://mail.google.com/mail/"
}
Best regards,
Joao Garin
Have you enabled both the Drive API and the Drive SDK in the Google Developer Console?
See the details on enable the drive platform and make sure you have everything configured properly.

Assign tray icon to Google Chrome web application

I need to create a web application which will be stored in the traybar of Windows, this to prevent users from accidentally close my application (without the need of a pre-close alert message).
I thought that Google Chrome's background apps could be the right way to go, mostly because I don't need cross-browser compatibility and I have to choose which browser my users will use to run this web application.
The only problem is that I don't understand if I can achieve what I need with this feature.
I've found only this example of background app in Chrome countdown app
But this app uses the "background page" feature, that is different from what I'm looking for.
How can I let a Chrome app be minimized in the traybar (or even in the taskbar would be ok) instead of be closed?
Try to use node-webkit (chromium + node.js) for it: https://github.com/rogerwang/node-webkit
It allow to create any web-app and it support tray icons: https://github.com/rogerwang/node-webkit/wiki/Tray
You can download my windows example app here: https://mega.co.nz/#!xQMzgbxD!S58G-V23QLNRDFC10xso41-T2V8OZQVsQEH-lr46R3s
If you want exactly chrome, try this NPAPI plugin example: http://minimizetotray.googlecode.com/files/SourceCode.zip from http://habrahabr.ru/post/73003/
Unfortunately, I don't think you will be able to achieve exactly what you're after. You might be able to combine the two solutions below to nearly achieve your requirements. However, I don't think the type of control you are after is available via Google Apps.
Google App Launcher
The Google App Launcher would fulfill the "stored in the traybar of Windows" requirement.
The Chrome App Launcher is the hub of all your Chrome apps and with it
you have quick access to all of your apps from the desktop. When you
install an app from the "For Your Desktop" collection of the Chrome
Web Store, you get the App Launcher. The App Launcher requires you to
sign in to Chrome to enable apps that need access to your Google
account.
Manage apps
When you download a new app that enables App Launcher, the apps from
your Apps bookmark on Chrome New Tab page will also appear in the App
Launcher. Managing apps in the App Launcher is simple.
Add more apps: Click the Chrome Web Store button in your apps list and explore the apps in the store.
...
Background: Extending Your App's Life
You mentioned background apps in your question but I would recommend you explore it further. It essentially provides the "prevent users from accidentally close my application" requirement that you stated. This isn't foolproof (see bold sentence below) but it is about as close to the requirement I think you will be able to achieve.
As of Google Chrome 10, the background feature lets a hosted app run
as soon as the user logs into their computer—before the user launches
Chrome or the app—and to continue running even when Chrome or the app
has no visible windows. However, if the user explicitly quits Chrome,
the browser and app both exit.