You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) are a
@@ -191,7 +191,7 @@ application very quickly. In our case, these are all used files, without the sta
191
191
192
192
If you try to cache a file that cannot be retrieved, the service worker won't be installed
193
193
194
-
[image:Service Worker failed to install](./img/error_sw.png)
194
+

195
195
196
196
Once the ServiceWorker is installed, we can listen to the activate-event.
197
197
@@ -292,7 +292,7 @@ If you configured the web app manifest correctly, the browser might decide to sh
292
292
[Install Banner](https://developers.google.com/web/fundamentals/engage-and-retain/app-install-banners/). When and if
293
293
the install banner is opened is browser-specifc and can be changed over time.
294
294
295
-
[image:install banner](./img/install_banner.png)
295
+

296
296
297
297
## Local Storage
298
298
The web has many features available that help create an app-like experience, like
@@ -432,7 +432,7 @@ var app = new Vue({
432
432
For our final touch, we implement push notifications to engage users to use our app. Push notifications for progressive web apps work in 2 parts: [Web Notifications](https://notifications.spec.whatwg.org) and the [Push API](https://w3c.github.io/push-api).
We can show this, when a push-event is triggered in our service worker:
438
438
@@ -517,16 +517,16 @@ urlB64ToUint8Array: function (base64String) {
517
517
In order to send push notifications, we need to have a push notification server. We will use Google's [Push Companion](https://web-push-codelab.appspot.com/) website for this.
518
518
In the above code, replace "<YOUR\_PUBLIC\_KEY>" with the public key that is generated for you on the Push Companion website:
Reload the MyBike-application and press 'Enable notifications'. After a few moments, the text should switch to 'Disable notifications', meaning that we are now subscribed, and you can
523
523
disable them again when needed. The subscription itself is shown in blue.
0 commit comments