Juan David Maldonado
Fullstack Software Developer, Lover of Google Technologies. Trilingual
PWA
@jdmaldonado06
If you didn't do the homework...
npm install -g ionic
npm install -g firebase-tools
https://jdmaldonado.com.co
Social
Business
jdmaldonado
jdmaldonado06
jdmaldonado06
Progressive Web Apps
Web
PWA
Native
Device | Tinder | |
---|---|---|
Android | 22 MB | 130 MB |
iOS | 114 MB | 178.4 MB |
PWA | 0.25 MB | 0.2 MB |
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker.register('/sw.js')
.then(function (registration) {
// Registration was successful
console.log('Successful', registration.scope);
}).catch(function (err) {
// registration failed :(
console.log('Failed: ', err);
});
});
}
{
"name": "My PWA",
"short_name": "My PWA",
"start_url": "index.html",
"display": "standalone",
"icons": [{
"src": "assets/imgs/icon.png",
"sizes": "512x512",
"type": "image/png"
}],
"background_color": "#4e8ef7",
"theme_color": "#4e8ef7"
}
https://console.firebase.google.com/
https://ionicframework.com/getting-started#cli
https://onesignal.com/
By Juan David Maldonado
Fullstack Software Developer, Lover of Google Technologies. Trilingual