Open tgamauf opened 2 years ago
Can send push messages via platform specific services:
For both it is probably necessary to make the webapp install-able and the user must install it in order for push messages being shown even if the browser is closed: https://web.dev/install-criteria/
Should notifications be sent separately for each location? Over all locations? Let the user choose?
What should be the trigger for sending a notification? If prices are going down it could be lower every few minutes. We definitely need some kind of threshold or a minimum wait time between messages.
Good overview over push services: https://www.smashingmagazine.com/2022/04/guide-push-notifications-developers/
Better to use an intermediary instead of Google/Apple push services as they change with reach release, which would require additional maintenance. Services:
Possible metrics:
Can send push messages via platform specific services:
- Android: https://firebase.google.com/products/cloud-messaging
- iOS: https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/APNSOverview.html The process can also be abstracted via AWS SNS: https://aws.amazon.com/de/sns/ but this probably doesn’t get us much and just locks us into the ecosystem.
For both it is probably necessary to make the webapp install-able and the user must install it in order for push messages being shown even if the browser is closed: https://web.dev/install-criteria/
If push works in the first place for „installed“ webapps, then it is probably a good idea to give the user the choice of wich channel to use.
Promote install of webapp on mobile:
Push messages do not work yet as of iOS 15.4. However, the API is already implemented, so it might be that it will work in one of the next releases. https://firt.dev/notes/pwa-ios/
Multiple ways to archive this - easiest is to simply send an email. An possible alternative would be to register the website as app and then send push through browser: https://stackoverflow.com/questions/33687298/how-to-send-push-notification-to-web-browser#33976929 - needs investigation. In any case, user must opt-in.