Android class to trigger events, Batch Routine?

-1

I need a class that, from time to time, tries to cross database data and depending on the result send a notification to the user or modify / include information from the database. I do not know if this class / structure would be within the scope of the app, bundled in the sdk on the user's cell phone or if it is something external ... How do I do this? What is the resource used for this type of activity?

    
asked by anonymous 21.09.2018 / 23:52

1 answer

0

You can create a service with an alarmManager that connects to the server to check for changes but this will greatly increase the power consumption and data of the phone, the best alternative is to be the server to send when there are changes and for this you can use Firebase Messaging is a free and extremely fast service.

    
25.09.2018 / 15:59