May I be too novice at swift right now, or is just an issue some of you encountered and maybe you can provide me with some help.
I extract data directly from Alpha Vantage API, parse the json, put it into an struct and so on. Everything works fine. I also put this method in the app background so the app is updating from time to time.
BUT…
Maximum API calls is 1200/per minute (if you pay), and its the maximum. Lets say 2000 people installed my app. At every 1 hour in the background of the app fires the API method. But there are 2000 devices, each of them representing an API call, so nothing will work.
I was thinking that the best solution will be to import all the JSON data to a server at every hour, and the user devices just retrieve the data from there. I use Firebase and there I can upload JSON manually from my laptop…What if I want to retrieve that data at every 5 minutes, I wont stay all day and night at every 5 min to download and paste manually json data in Firebase real time database…
So, do you have any solution for this issue? How I can import json data dynamically into Firebase or, if it isnt possible in Firebase, in whatever other database? Or is not necessary and even though there are 2000 devicies, there is ocuring just one call and is sent automatically to all devices in background?
Thank you! Any answer I reckon it will be helpfull for me at this point.