I am currently working on a Money Tracking app and I want to associate each user's spending activity with their profile, ie how do I store their expenses according to date and associate it with their profile? I am using Firebase Realtime Database. Currently, my user tree looks something like this.
its pretty simple. All you can do is Create a separate node spending and save your data using Firebase User Id as parent Node and then date as child node with spending record of that current date so, later you can few record for each separate date as well. and for clean code you can use MyFirebase Helper Classes Kotlin & MyFirebase Helper Class java
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.