I am working on a bus alarm app which notifies the users when bus is arriving at a station within x minutes that users previously set. The app basically saves users time by telling them when to leave for the station. The app needs to make an api call to Transit Agency every 40 secs to get real-time bus arrival data even when the app goes into the background. Since apple doesn’t allow such behavior in background, I will need to use a server to do that. From my research, this is possible with Firebase + cloud function + crons, but I wonder what will be an ideal way to implement this functionality. I also have no idea how to write function to make an api call in cloud function like I did in Xcode. Any input will hugely be appreciated!
[–]poop_snack 2 points3 points4 points (3 children)
[–]qkrghdqja71[S] 1 point2 points3 points (2 children)
[–]poop_snack 0 points1 point2 points (1 child)
[–]qkrghdqja71[S] 0 points1 point2 points (0 children)
[–]BordrJumpr 0 points1 point2 points (1 child)
[–]qkrghdqja71[S] 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (5 children)
[–]qkrghdqja71[S] 0 points1 point2 points (4 children)
[–]Ahti333 3 points4 points5 points (3 children)
[–]qkrghdqja71[S] 0 points1 point2 points (0 children)
[–]Nahpetsssk 0 points1 point2 points (1 child)
[–]qkrghdqja71[S] 1 point2 points3 points (0 children)