I'm developing an android app (native) that communicates with rest api (python/flask). Is there any good ways to detect database changes and then load new data from the server?
Currently, after saving new data, the rest api sends Firebase push notifications to android clients. After client receives notification, it send broadcast message to activity (LocalBroadcastManager) and then activity knows that change have been made and it needs to load new data from the rest api. Is there any better solutions to do this?