Android class to trigger events, Batch Routine?

Asked

Viewed 20 times

-1

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

  • I think the backend better do this task and send the notification

  • Where would you put this class of control? How would it be triggered? N know how to deal with actions that is not the user that fires on android. Since there would be no interface for interaction, n know what is the resource used for this.

1 answer

0

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.