i'm creating android app, and using Firebase. I have 'Missions', and 'Mission' have status. If the status changes to 'Active' - I need to 'Wake up' my app and run the code of 'ActiveMissionActivity'. (The work of the service should be just 'Waking up the app' and go to another activity)
I could write missionsDbRed onChildChanged listener which will be activated when the status is active - but only when the app is running.
What is the good practice for this issue? My friend suggested me to use 'Android Service', but i'm not sure which type do I need, and if there is something that works well with the Firebase DB.
For example i've seen 'Firebase Cloud Functions' But i'm not sure which one is more suitable and why. Thanks