I 'm working on an Android App that I take entries from user and add them to Firebase to retrieve in the future but I confused about that do I need a viewModel for this operation. So, I know we need viewModels for business logic e.g grabbing data from an API or database but I have no idea about that Is it necessary when adding data to Firebase. If it does, I can't access the views where users enter data from a viewModel.
Can you explain do I need viewModel and if I do, how to access these views from viewModel ?