I am new in the app development and this is something that I could not find enough information about so far. I am intending to implement an application in which I will have a table where each row includes some unique data (independent from other rows).
I would like to implement a credit mechanism where a user - e.g. - purchases 100 credits (via in-app purchases); and whenever s/he wants to see the content of a particular row in the table, s/he will need to spend - e.g. - 10 credits.
Example: In the beginning, the user has 0 credit. Then s/he buys 100 credits and then chooses to see the content of 3 rows in the table (each row costing 10 credits). And at the end, s/he still has 70 credits.
Targets I have:
I am implementing this app by using Ionic (Angular). Can this implementation be done as explained above (without a database for remembering the user credit info)? If no, why..? If yes, how can it be done?
Addendum: If you have experience/knowledge in developing such a functionality in a different way than how I described it above, you are welcome to share it as well.
yes you can store user's credit information in users mobiles using Ionic Offline Storage. Ionic Offline Storage is a cross-platform data storage system that works on iOS and Android.
This simple documentation will help you for implementation
NOTE: If user clear app storage/cache then already stored user data (e.g. credits) also gets cleared.