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
Jake Archibald (one of the designers of the ServiceWorker) suggests to look at https://w3c.github.io/wake-lock/. This should keep the page alive, not by using a ServiceWorker. Support seems to be poor. Needs more research
Keep track of user location and time on the website everytime they open it. For example: User opens website at 8:00 at location A and opens it again at 12:00 at location B. We already know the time in between the 2 actions, for distance we have two options:
Calculate the approximate distance as the crow flies (hemelsbreed) (Not very accurate)
Calculate a more precise distance using a geoservice (by Google Maps API or another service) (Accurate, slower to fetch, might have to be paid for)
Based on this data we know how long someone has been on the road.
Create a hybrid web app in order to use Geofencing, which is supported natively: (https://ionicframework.com/docs/native/geofence/) (This is probably the worst solution of all, since we want a PWA)
Figure out if it's possible to fetch the user's location as a background process.
Goal: We would like to send a user messages based on their location and time.
The text was updated successfully, but these errors were encountered: