Progressive Web Apps API of APIs
Verify phone numbers on the web with the WebOTP API, which allows you to receive one-time passwords (OTPs) from the SMS message and automatically fill them into the form.
await pwa.webOTP((res) => {
// Do something with the result.
if (res.ok) {
// Do something.
const code = res.code;
} else {
// Do something.
}
});
Full Changelog: https://github.com/pwafire/pwafire/compare/v3.0.6...v4.0.0
Goal is to make sure that a more semantic and expressive response is sent back in each API use instance.
For example;
{ ok: true, message: "Text copied" }
Index your offline-capable pages with the Content Indexing API
Full Changelog: https://github.com/pwafire/pwafire/compare/v3.0.6...v4.0.0-alpha-1
The Idle Detection API notifies developers when a user is idle, indicating such things as lack of interaction with the keyboard, mouse, screen, activation of a screensaver, locking of the screen, or moving to a different screen. A developer-defined threshold triggers the notification.
Learn how to use here and more here
Full Changelog: https://github.com/pwafire/pwafire/compare/v3.0.5...v3.0.6
The Idle Detection API notifies developers when a user is idle, indicating such things as lack of interaction with the keyboard, mouse, screen, activation of a screensaver, locking of the screen, or moving to a different screen. A developer-defined threshold triggers the notification.
Learn how to use here and more here
Full Changelog: https://github.com/pwafire/pwafire/compare/v3.0.5...v3.0.6-alpha
Full Changelog: https://github.com/pwafire/pwafire/compare/v2.0.4...v3.0.5
Allows web apps to read or save changes directly to files and folders on the user's device.
The promise resolves with a file response
// Do something with the contents...
const res = await pwa.pickkFile();
const file = res.type === 'success' ? res.file : null;
The File System Access API allows web apps to read or save changes directly to files and folders on the user's device.
The promise resolves with a text response(contents of the picked text file)
// Do something with the contents...
const contents = await pwa.pickTextFile();
v1.10.25