google-chrome-app

Reasons for porting a Cordova App to a Mobile Chrome App?

纵然是瞬间 提交于 2019-12-18 03:11:15
问题 We got a Cordova App running and wrote ourselves a build script using Grunt which makes building the App a breeze. We don't require any of the APIs Chrome offers and are, apart from some performance issues with elderly Android devices which forced us to block some minor features on those devices, pretty much satisfied with the current status of our app. So far we couldn't find any reason why it would make sense to transform our Cordova App into a Mobile Chrome App. Or is there something we're

Google Chrome Package Apps : How to make transparent rounded background like google hangout app?

五迷三道 提交于 2019-12-18 02:42:59
问题 As shown in the below screenshot, hangout app is fully transparent and it has background-shadow applied to it as well. I tried several approach with no luck by applying css styling to "html" and "body" tag to the page and by using "frame: none" option while creating new window, but it doesn't work. How to make Google chrome package app like this? Anyone have any idea? Here is the code on which I am experimenting. mainfest.json : { "manifest_version" : 2, "name" : "Demo App", "version" : "0.1"

Can a chrome application launch local program?

坚强是说给别人听的谎言 提交于 2019-12-17 21:19:15
问题 I now that chrome applications can deliver an experience close to that of native applications, but I could not find a way yet to run a local command from a chrome application. Is there any API for this that could used after the user has given permission? How can this be done? Thanks 回答1: It is in principle possible via Native Messaging. You can have a native app specifically designed to talk to your Chrome app, but the downside is that the native component cannot be bundled with the app in

PWA deployed in node.js running in Standalone mode on Android and iOS

≡放荡痞女 提交于 2019-12-17 21:00:51
问题 I am trying to implement PWA in standalone mode on Android and iOS. I have a secure node.js server (HTTPS) and everything is apparently working fine (index.html, manifest.json, serviceWorker.js, ...). The application runs correctly from Chrome and can be added to the home screen and run in standalone mode on the PC. It also works in standalone mode on iOS (Safari), but not on Android (Chrome). Because of this, I tested three different PWAs: with a basic example of ionicPWA, another example of

Refused to execute inline event handler because it violates CSP. (SANDBOX)

╄→гoц情女王★ 提交于 2019-12-17 18:57:09
问题 I'm developing a google chrome packaged app, when I put Sandbox in the manifest.json : { "manifest_version": 2, "name": "WM32216", "version": "2.1", "minimum_chrome_version": "23", "permissions":["webview", "https://ajax.googleapis.com/*"], "sandbox":{ "pages":["index.html"] }, "app": { "background": { "scripts": ["main.js"] } } } An onclick event on my anchor tag works, and the flow of the app is complete EXCEPT THAT, icons from a CSS stylesheet don't load. I got an error from the console

How to access internal resources from background.js

百般思念 提交于 2019-12-17 16:59:11
问题 In a Google Chrome application is it possible to access bundled data files from within the background.js script? E.g. if I had a file called data.json that I include with the app, is there a JavaScript API that I could use in the background.js script to get at the files contents? With the example bundle directory structure: /app/manfifest.json /app/backround.js /app/data.json I want to do something like: chrome.app.runtime.onLaunched.addListener(function() { data = unknown.api.loadFileSync(

Is it possible to get an Id token with Chrome App Indentity Api?

感情迁移 提交于 2019-12-17 10:49:32
问题 I can't get a user's id_token (https://developers.google.com/accounts/docs/CrossClientAuth) from the Chrome identity api (https://developer.chrome.com/apps/identity). I can get an access_token using the chrome identity sample when the oauth section in the manifest is: "oauth2": { "client_id": "<chrome-app-client-id>.apps.googleusercontent.com", "scopes": ["https://www.googleapis.com/auth/plus.login"] } But when I try to get the id_token the same way I get it on my android client a get the

Unchecked runtime.lastError when using Chrome API

試著忘記壹切 提交于 2019-12-17 07:29:12
问题 I use chrome.fileSystem API in my app to open a file. When I click the Cancel button of the file chooser dialog, an error occurs: Unchecked runtime.lastError while running fileSystem.chooseEntry : User cancelled How to fix this error? 回答1: This error is not important in this case, but I'll explain it and how to get rid of it. What is this error? Chrome APIs are mostly asynchronous: you have a callback that is called when the operation completes. In case of chrome.fileSystem.chooseEntry , the

can we get chrome browsing history/bookmarks in our android app

爷,独闯天下 提交于 2019-12-17 07:15:44
问题 can we get chrome browsing history/bookmarks like we get in default browser using READ_HISTORY_BOOKMARKS permission? PS:I Just want to know is it possible? 回答1: Yes it is very much possible. Use this uri: content://com.android.chrome.browser/bookmarks instead of Browser.BOOKMARKS_URI String[] proj = new String[] { Browser.BookmarkColumns.TITLE,Browser.BookmarkColumns.URL }; Uri uriCustom = Uri.parse("content://com.android.chrome.browser/bookmarks"); String sel = Browser.BookmarkColumns

can we get chrome browsing history/bookmarks in our android app

寵の児 提交于 2019-12-17 07:15:15
问题 can we get chrome browsing history/bookmarks like we get in default browser using READ_HISTORY_BOOKMARKS permission? PS:I Just want to know is it possible? 回答1: Yes it is very much possible. Use this uri: content://com.android.chrome.browser/bookmarks instead of Browser.BOOKMARKS_URI String[] proj = new String[] { Browser.BookmarkColumns.TITLE,Browser.BookmarkColumns.URL }; Uri uriCustom = Uri.parse("content://com.android.chrome.browser/bookmarks"); String sel = Browser.BookmarkColumns