is there any way to count downloads in firebase and then show it in app
suppose
i have 10 files in pdf
i want if any user download any files then download should show 1 and then again if any user download any files then it should show 2
Sure thing. After you get the file, get the counter, and increase it by 1. Use teh realtimedatabase as your counter source. and storage as the place for your files.
I keep total counts on all sorts of things, such as errors etc.
Nope ,maybe firebase is fast but you need think about user connection.For this problem your solution enought.But if someone desing multiplayer app using firebase ı dont recommed this
I know it.I just thinking about special conditions.If user get value and lost connection with firebase for enought second for other users to update counter ,then reconnected firebase which value stored?.
If counter number is 763 and user get this number
He do local operation 763+1= 764 but he lost connection when storing this number.When he lost connection with firebase other users can increase counter number to 764 ,765 etc.So ıf user doesnt close app and reconnected firebase succesfull firebase update number to 764.And we miss other users increase operation by doing this.
So ı m wrong with my idea what you think ? I know its hard to happen but if we desing multiplayer apps we need think every problem.Yes maybe we have a world fastest database but if user connection can be slow we cant use these solutions.
If the system is so crucial that is canot accomodate the slight potential that there is a conflict, the Kodular is not the development platform to use.
This is not a conceptually intellectual debate. We can talk what if all day.
Yea ı just thinking every think. I learned this from my experience.I already found solutions for this problems i will test them with my New multiplayer app.But need a time . Contiune this topic is useless