Could you give me an example please?
All my values have been stored in a cloud DB. I think it would be easier to understand if you could by chance show me what you mean?
This procedure is off - it should only be uploading to CloudDB1? Have a separate Procedure to download.
Now, an issue for those of us trying to help is we don't understand what the App is supposed to do! We do know the User selects a craving for each meal time and that data is uploaded to the Cloud.
We don't know why the same App would download that data, or is it a seperate App doing this?
Plus:
a) What exactly is supposed to happen to initiate the download?
b) Once downloaded, what is supposed to happen with the data?
If you could draw a schematic of the process, that would help enormously.
The app downloads the data so that it can remember if the user clicks i.e breakfast, spicy craving, 20 min (time will be allocated later) and then it would display only THOSE recipes.
It doesn't make sense to upload data and then immediately download it - you already have the data in the App before the upload. I thought your App was performing a survey where several people would upload their data and later someone would analyse it.
If it's not for something like that, but the data needs to be stored for recovery at a later time, save it on the phone in TinyDb.
So the Users initial choices would be made, then the App presents what is available - re your example, Breakfast, Salty, 20 minutes. Up to this point, no User data needs to be saved. What does need to be saved (for access by the chef?) is the User's selection from the list of Breakfast, Salty, 20 minutes meals.
Oh ! I see. I understand now - I got confused. oops.. I'll redo it with TinyDB and see how it goes ! Thank you so much !
Just double checking for future purposes, I'm still using CloudDB for a Register/login system as I want the users to be able to save their favourite recipes for later.
That still doesn't need CloudDb, it can just be stored on their phone, the advantage being that the App will work interdependently of the internet and so be more reliable.
Note, you don't need to save images in the Db - they are already on the device (in your App?). You just need to save the filename so that the image can be loaded.