Service that watches current football matches on PA, and when a goal is scored uses the Guardian Mobile Notifications service to send a push notification to subscribed users.
In order to facilitate testing when there are no matches in progress, you can force the CODE
environment to run in the past using football-time-machine
.
- Find a match which recently took place.
- Install a debug version of the app and start following a relevant team or match.
- Set a date and time for just before the match started (n.b. the ZonedDateTime used must be URL encoded) e.g.
curl https://hdjq4n85yi.execute-api.eu-west-1.amazonaws.com/Prod/setDate?startDate=2020-07-26T14%3A59%3A00%2B01%3A00%5BEurope%2FLondon%5D
- Check the logs to track progress of the match.
- Your device should receive notifications when significant match events occur (e.g. kick off, goals, half-time etc.)