Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Battery status/geolocation/device check-in not available in service workers #207

Open
Fratopolis opened this issue May 1, 2022 · 7 comments
Labels
topic: service worker Related to service worker background scripts

Comments

@Fratopolis
Copy link

We use these to track our school district Chromebooks and the health of the Chromebooks battery. As well, we use a trigger located in the background page for interval check-ins to our fleet Management. On version 3 these are not available. And the check-in interval is reset when all browser tabs are closed on a Chromebook and reopened. The check-in also completely stops if tabs are not re-opened

@Rob--W
Copy link
Member

Rob--W commented May 12, 2022

For clarity, this issue is asking about

What's the "device check-in" part of the report about?

This issue can probably be merged with #72

@Fratopolis
Copy link
Author

The check in let's us know when our Chromebooks are online and who is using the Chromebook. This helps us ensure the student or staff member using the Chromebook is the one it is checked out to.

@Fratopolis
Copy link
Author

I thought this was for Google chrome not Firefox. Am I posting in the wrong area?

@Fratopolis
Copy link
Author

I just realized what you meant by that question. It's a timer that kicks off. In this instance every fifteen minutes. When all tabs are closed on the Chromebook the timer ends. And restarts all over when a new tab is then opened initiating a logon event and resetting the fifteen minute timer.

@Rob--W
Copy link
Member

Rob--W commented May 26, 2022

From your description, it looks like you could be using the alarms API as a replacement for your timer (setTimeout?), combined with whatever triggers you are using to set/reset the timer.

I thought this was for Google chrome not Firefox. Am I posting in the wrong area?

This repository & issue tracker tracks issues related to cross-browser extension APIs.

You've mentioned some Chrome bugs, and for completeness I added the perspective of Firefox to the report.

If you'd like to report a browser-specific issue, use crbug.com (see the pinned issue for more information).

@carlosjeurissen
Copy link
Contributor

@Fratopolis To report a browser-specific issue please see:
#155

@xeenon xeenon changed the title Battery status/geolocation/device check-in Battery status/geolocation/device check-in not available in service workers Aug 31, 2022
@xeenon xeenon added the topic: service worker Related to service worker background scripts label Aug 31, 2022
@owengo
Copy link

owengo commented Oct 9, 2022

We are also a company with a fleet of chromebooks, we have a custom extension force-installed which allows us to monitor the state of the devices and with MV3 we can't get access to battery information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: service worker Related to service worker background scripts
Projects
None yet
Development

No branches or pull requests

5 participants