srecnig / hello-pwa

The classic Hello World program as a Progressive Web App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hello PWA ins Usersnap

Disclaimer: This is based on jamesjohnson280/hello-pwa.

What is this

This is a very, very simple proof-of-concept to show that Usersnap will work with PWAs. Tap the Koala to open a usersnap widget (please add your api-key in index.html). T

There are caveats, though:

  • The Usersnap widget does not work offline, since it needs to send the feedback data to Usersnap's servers. If your PWA offers offline functionality, sending feedback will only work when you're online.
  • Handling reconnects: The naive approach in this demo app will not try to reload the widget if the initial load failed. If you open this PWA without internet connection to initialize the Usersnap widget, it will not open afterwards, even if you regained internet connection. You'll have to work around this by keeping the state of Usersnap's loading somewhere in your app.

With full internet access, Usersnap should be able to collect your feedback and render your screenshots just fine:

Homescreen Widget Dashboard

Attributions

About

The classic Hello World program as a Progressive Web App

License:MIT License


Languages

Language:HTML 48.4%Language:JavaScript 36.3%Language:CSS 15.3%