Google Drive API / Realtime API on Chrome OS - offline? - google-drive-api

Chromebooks etc have offline versions of users' Drive files, so is there a way to use the Realtime API, which though apparently inaccessible offline, does work just fine offline? (my app starts in an 'inMemoryModel' mode).
Problems include that Google disallows cacheing of their API's, and that when a manifest-enhanced single-page web-app is run on a disconnected Chromebook, the user is shown a "This application cannot run offline" screen, or similar.
What if anything, is Google's plan for this, and other similar Drive API situations?

Related

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).

Full Website Within Chrome Application Window

Was wondering if I had a web-application on www.mydomain.com/userportal etc but didn't want this accessable via the browser, but as a chrome application similar to how Google's Hangouts is a seperate window / popup - How easy is it to implement an already built application into one of these windows?
If I understand you correctly, you would like to display your www site as a Chrome App. Chrome apps are all HTML/CSS/JS files hosted on the computer but they can display a webview into a site online. However, Chrome Apps must be 'offline' first. So you must ask for permissions to all online activity.
Ideally you would make separate app hosted as a Chrome App (not link/embedded to a www site) that uses an API to talk to a web-app.
Keep in mind that Google is phasing out Chrome Apps for all platforms except Chrome OS in the near future.

How to restore app data from Google Drive Android SDK without user interaction like WhatsApp

I am working on an Android App which requires saving certain key-value data into Cloud. So when the user installs my app, I could restore the key-value data from Cloud. I have done a lot of research including Android BackupAgent API which is not stable at all. I have done certain research about using Google Drive Android SDK, which indeed could backup and restore the key-value data successfully. But it requires user interaction to select which account, even though my device only adds one Google Account and it has been authorized the app to access Google Drive SDK before.
I would like to make the whole process, backup and restore, as seamless and automatically as possible, with limited user interaction. I noticed that WhatsApp Android could implement such feature. But I failed in finding samples in Google Drive SDK samples.
Is there any sample that demonstrates the data restoration automatically without selecting the Google Account like WhatsApp Android? Any guidance will be greatly appreciated.

chrome.gcm is only available to apps and extensions, how do I use it as a normal website?

I have heard that push notifications are now supported in Chrome (including Android) as a website, but the documents I can find talk about chrome.gcm as only available in a Chrome App or Chrome Extension. What do I do?
chrome.gcm was a proprietary push API built for Chrome Apps and Extensions which the user has to install.
There is a new API called Push API (spec) which is a web standard based on service workers, and available to normal websites.
This walkthrough explains how to send notifications from your website and should get you up and running: https://developers.google.com/web/fundamentals/getting-started/push-notifications/

Want to monitor Https traffic from google chrome

I want to monitor Https traffic going out from google chrome.
Is there any possibility to write something in C++ for similar purpose, like some hook.
When I tried to hook in ws2_32::WSASend API and load my dll in chrome, it is causing crash. It look like chrome protects hooking of Windows API. I am more interested in APIs not applications like fiddler which can show Https traffic.
I have also seen google's native-client option but does not think it is useful because any extension need to deploy using google web store which is not a possibility in my case.