google-chrome-app

Ctrl+f (find) in Chrome app

こ雲淡風輕ζ 提交于 2021-02-19 02:50:50
问题 Is it somehow possible to enable the browser feature Ctrl + F (find in the current view) in a chrome app? I am talking about an app I am writing myself and I am really missing that feature. 回答1: You can't "enable the browser feature" because a Chrome App window is not a browser. True, it's it's always initially loaded from an HTML file, but that doesn't make it a browser. What you have to do is set a handler for the keyboard event (a technique not unique to Chrome Apps) and then in that

iOS Chrome calculates the wrong height of the document

时光怂恿深爱的人放手 提交于 2021-02-18 10:15:30
问题 In order to fill the whole height of the page, I use height: 100%; for html and body tags, and it works fine until a browser would be closed and reopened. (I don't use 100vh because of issues on mobile devices https://nicolas-hoizey.com/2015/02/viewport-height-is-taller-than-the-visible-part-of-the-document-in-some-mobile-browsers.html ) Steps to reproduce: Open https://angelika94.github.io/rick/ in Google Chrome on iPhone (you will see that navigation (Morty and Beer) is placed on the bottom

iOS Chrome calculates the wrong height of the document

依然范特西╮ 提交于 2021-02-18 10:15:20
问题 In order to fill the whole height of the page, I use height: 100%; for html and body tags, and it works fine until a browser would be closed and reopened. (I don't use 100vh because of issues on mobile devices https://nicolas-hoizey.com/2015/02/viewport-height-is-taller-than-the-visible-part-of-the-document-in-some-mobile-browsers.html ) Steps to reproduce: Open https://angelika94.github.io/rick/ in Google Chrome on iPhone (you will see that navigation (Morty and Beer) is placed on the bottom

iOS Chrome calculates the wrong height of the document

ε祈祈猫儿з 提交于 2021-02-18 10:15:08
问题 In order to fill the whole height of the page, I use height: 100%; for html and body tags, and it works fine until a browser would be closed and reopened. (I don't use 100vh because of issues on mobile devices https://nicolas-hoizey.com/2015/02/viewport-height-is-taller-than-the-visible-part-of-the-document-in-some-mobile-browsers.html ) Steps to reproduce: Open https://angelika94.github.io/rick/ in Google Chrome on iPhone (you will see that navigation (Morty and Beer) is placed on the bottom

Chrome App fails to communicate with native host on windows

孤街浪徒 提交于 2021-02-07 14:55:00
问题 I have written a chrome app and a native messaging host in Java. The combo works fine on linux. However when I try to port the combo to windows the communication can not be established. The jar where the host is contained is exactly the same as the linux variant. I am using the following script (start.bat) to start the Java host: @echo off java -jar "%~dp0theHost.jar" The json manifest is as follows: { "name": "com.service.host", "description": "Native messaging host", "path": "start.bat",

Chrome App fails to communicate with native host on windows

若如初见. 提交于 2021-02-07 14:54:18
问题 I have written a chrome app and a native messaging host in Java. The combo works fine on linux. However when I try to port the combo to windows the communication can not be established. The jar where the host is contained is exactly the same as the linux variant. I am using the following script (start.bat) to start the Java host: @echo off java -jar "%~dp0theHost.jar" The json manifest is as follows: { "name": "com.service.host", "description": "Native messaging host", "path": "start.bat",

Chrome App localStorage not persisting and chrome.storage not working

妖精的绣舞 提交于 2021-02-07 13:17:53
问题 I have a chrome Kiosk App which I need to save data (a few bytes as a string) between the machine turning on and off. But what ever I try, the localStorage seems to be wiped on restart. When I go to chrome://inspect/#apps to inspect the Chrome App, there are no related errors in the console regarding to LocalStorage Within Chrome in a browser, I would simply use localStorage but this does not persist when in a Kiosk App. Example of code: window.localStorage.setItem(id, temp); window

Chrome App localStorage not persisting and chrome.storage not working

微笑、不失礼 提交于 2021-02-07 13:16:29
问题 I have a chrome Kiosk App which I need to save data (a few bytes as a string) between the machine turning on and off. But what ever I try, the localStorage seems to be wiped on restart. When I go to chrome://inspect/#apps to inspect the Chrome App, there are no related errors in the console regarding to LocalStorage Within Chrome in a browser, I would simply use localStorage but this does not persist when in a Kiosk App. Example of code: window.localStorage.setItem(id, temp); window

How to automate testing of Chrome packaged apps?

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-06 09:24:12
问题 For regular web sites there are various tools to perform automated UI testing of applications, e.g. Selenium. However, how do I do this for Chrome Packaged Apps? My applications heavily uses Chrome App-specific APIs, so hosting it as a regular web page for testing won't work. Any best practices or tools for this? 回答1: If you can get the app window handle, then Selenium Webdriver will still work. I discovered this by accident when I had a call to driver.getAllWindowHandles() at the end of a

Checking a value in a nested JSON using Postman

≡放荡痞女 提交于 2021-02-04 06:15:00
问题 I have a nested JSON returned from an API that I am hitting using a GET request, in POSTMAN chrome app. My JSON looks like this "result": [ { "_id": "some_id", "name": "India", "code": "IN", "link": "http://www.india.info/", "closingTime": "2017-02-25T01:12:17.860Z", "openingTime": "2017-02-25T06:12:17.205Z", "image": "image_link", "status": "online", "serverStatus": "online", "games": [ { "_id": "some_game_id1", "name": "Cricket" }, { "_id": "some_another_id1", "name": "Baseball" }, { "_id":