Skip to content

Latest commit

 

History

History

football

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Mobile Goal Notifications

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.

Testing in CODE

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.

  1. Find a match which recently took place.
  2. Install a debug version of the app and start following a relevant team or match.
  3. 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
  4. Check the logs to track progress of the match.
  5. Your device should receive notifications when significant match events occur (e.g. kick off, goals, half-time etc.)