Progressive Web Apps API of APIs
v1.10.25
Allow Developers to have an ability to do much with the API itself as shown below;
Have a look at the following changes...
// Define styles of the success message as a string
const styles = ``;
// Copy from a single element
const element = document.getElementById("copy");
// Copy text
pwa.copyText(element, styles);
So, you can have this wherever you need, all you need to do is pass in the text to copy.
pwa.Copy(text)
const text = `Some text`;
element.addEventListener('click', event => {
pwa.Copy(text)
})
All New Web Capabilities as one Package! All APIs bundled together.
npm i pwafire
<!-- Insert this script at the bottom of the HTML, but before you use any PWA Capability -->
<script crossorigi src="https://pwafire.org/code/cdn/releases/@latest/pwafire.js"></script>
import pwafire from "pwafire";
const pwa = pwafire.pwa;
pwa.Share(element, data);
Preview Documentation : Get Started
Note : Chrome 77 or higher running on Android M or later required!
It allows a web application to access contacts from the device's native contacts manager. Like this, your web app has access to your contacts' names, emails, and telephone numbers. You can specify if you want just one, or multiple contacts, and if you want all the fields, or just a subset of names, emails, and telephone numbers.
In your App, create an empty contactPicker.js file and copy and paste this code snippet to it to it. Then save your chnages!
Remember to add the contact picker button element to your web page.
<!-- Add this button to your App -->
<button id="contact-picker"> Pick Contacts </button>
We have updated all our bundle and devdocs to Workbox 4.0.0 which is the latest Workbox stable release with some amazing features.
The workbox-window package is a set of modules that are intended to run in the window context, which is to say, inside of your web pages. They're a complement to the other workbox packages that run in the service worker.
Learn more here