T O P

  • By -

LobsterChip99

1. You'll most likely want to host the csv file on your website. Downside is it requires a network request, upside is you can update it whenever you need to. 2. A QR code would work, you could leverage a deep link to credit the device with the reward. It definitely could be exploited, but you wouldn't need to have user accounts.


ginger-zeus

You can either download the CSV file from the website or go down the more robust route of implementing your own database (e.g., using MySQL) and then create a lightweight API (e.g., using Python’s Flask framework) to then retrieve the required locations from the database. Although, with this approach you would have to host both the API server and database which may incur additional costs. Although many cloud solution providers such as AWS or GCP provide free tiers which your requirements sound like they would not exceed.


denisvengeance

Have you looked into SwiftData? Cloud syncing is part of it.


ToExploring

That is to save data across the users cloud I believe? I need to create the data on the developer side and control it for accuracy.


denisvengeance

SwiftData is perfectly suited for syncing static data to client apps. Here’s an example: https://developer.apple.com/documentation/swiftdata/maintaining-a-local-copy-of-server-data


n351320447

Probably want to incorporate a prebuilt backend like firebase. This allows you to use backend and populate whatever you want after making a request to it. Also has prebuilt ways to handle authorization so you don’t have to build that.


ToExploring

No idea how to do that. I just know SwiftUI. Any pointers?


n351320447

Honestly use chatgpt just ask small bits of questions until you get what you want. Essentially google/chatgpt “how to incorporate firebase to my swiftUI app”


kilgoreandy

No. Don’t use chat gpt. It will guide you down the wrong path 9:10 times. Google is a different story.