How to check for inbox messages from remote server while application is not executing? [closed]

  

I will develop an app for iOS and Android using Delphi Seattle. My goal is that the user create some appointments in the database using the app, and later to be notified if his appointments were confirmed or rescheduled by the default notification center of each os platform.

So what I want to do is to receive instant messages from the server without app being used at the moment by the user, just like when we receive messages from WhatsApp or Gmail frequently with opening them.

In windows I could install a service or tray application to execute when the OS starts, but how could I do that using a remote Windows Server running an WebBroker Standalone as API to comunicante to/from my mobile app?

Note:
This question is not a replicate of other mentioned questions because it envolves doing something in Delphi’s FMX Framework for Android and not the Default Android Framework Library for Java. The second thing is, I do not want to use Google Notifications Services.
All I want to do is an application that works as a Service in Android, just like windows does. But how create it and how to install it with the GUI application? Something like public class LocationTrace extends Service but for Delphi.

Comments are closed.