Chrome OS Notification Shelf Icon

How can I create a shelf icon for Chrome OS notifications? Using web notifications would be preferred, but using extension notifications is also acceptable.

Update: It seems that appIconMaskUrl of extension notifications adds an icon to the shelf, but the icon is an all white square.

This image demonstrates the desired behavior.

enter image description here

How to manipulate the autoplay policy in a Google Chrome kiosk app

As of version 66 of Google Chrome onwards it will no longer automatically start playback of audio and video files when the playback volume is not muted.

This change was made to prevent autoplay on add-videos and other annoying web page elements. However, this has negative consequences for a number of perfectly valid applications of the autoplay feature, for instance in signage applications.

The new default behaviour of not auto playing a video with sound can be overridden at the startup of the Google Chrome browser with the command line options

--autoplay-policy=no-user-gesture-required

or

--no-user-gesture-required

The new default autoplay behaviour is also present in the Chrome browser on ChromeOS (currently in the beta channel). For Kiosk-apps running on ChromeOS there are no command line options, only configuration using the Manifest.json file.

Currently there is no option in the documentation of the Manifest.json format that allows changing the autoplay policy.

Is there a non documented way or a way outside the Manifest.json to change the new Chrome default autoplay policy in Kiosk apps?

Chrome OS key remapping

So I know that you can remap the keys in Chrome OS through custom extensions, But I am not sure how to.

Could I get some examples of remapping the numpad or a template that I only need to fill in the desired key for?

Chrome package app access to media files

I have google chrome package app.

I need to read locally saved photo and video and give them up to the HTML page.

How can I do this?

I try:

chrome.mediaGalleries.getMediaFileSystems(
  {interactive: 'no'},
  function(mediaFileSystems){
    mediaFileSystems.forEach(
      function(item, indx, arr){
        var mData = chrome.mediaGalleries.getMediaFileSystemMetadata(item);
        console.log(mData);
      });
  });

But console remains empty.

chrome.mediaGalleries / cannot read property ‘getMediaFileSystem’

I have some problem with chrome app:

I need to get a local img, but chrome.mediaGalleries.getMediaFileSystem does not work.

But its already added to permission : “fileSystem”:[“read”,”allAutoDetected”]

Where can be a problem?

get chrome app console logs in chrome os debug log

I’ve got a chrome app with several isolated layers (webviews, iframes), all those layers are logging some debugging stuff to console with console.log().

I managed to get all console logs inside a chrome debug log when launching chrome on mac os with --enable-logging --v=1 flags.

The problem is I can’t get all the console.logs when running the app in chrome os. For chrome os debugging I wrote the following into /etc/chrome_dev.conf file:

CHROME_LOG_FILE=/tmp/chrome_debug.log
--enable-logging --v=1

So I expect pretty much the same logs as I get when running chrome app on mac os, but I do not see any console.logs in /tmp/chrome_debug.log.

Would appreciate any advice how to get my app console.logs in chrome debug log on chrome os

How to shutdown or log off a user from a chromebook using Javascript APIs in a chrome extension

I’m making a chrome extension that handles logging off and shutting the chromebook down. I looked on https://developer.chrome.com/apps/api_index for a way to be able to restart the chromebook, but I didn’t find anything.

Right now, this only has to work on Chrome OS.

Can you develop in kiosk mode on chrome os?

I have a chrombit running chrome os on wich I’m trying to develop a kiosk app for digital signage.

I would like to use an chrome os API (https://developer.chrome.com/apps/networking_onc) wich is only avalible in kiosk mode. Is there any way I can test this during development, without deploying the app in the chrome store?