Hi,
I'm building an app that allows users to get real time data about trains in Portugal and the Metro system in Lisbon. I'm using SwiftUI for frontend.
I would like to add a feature to the app, where the User can add a specific Train to their Favourites list and subscribe to notifications about the status of that Train so that they are aware of any disturbances.
For example, 10 minutes before the train departure time, there would be an API call to fetch the train information, and a notification would be sent to the end-user with the status of the Train.
Can someone tell me if this is possible to do? And if so, how to do it?
Basically, I want to trigger an API call more-or-less at a specific time and, based on the data from the API, send a push notification to the User.
Thanks in advance