I have an app which runs on iPhone and Android devices. i also have a server that transfers files and other data between the clients. Now, my question is about the android client.
Currently, i have a service that runs in the background and handles the output and input, to and from the server, and whenever a new data recieved from the server, the client will launch a notification to the user.
So, if the user go in to his device Setting and force to close the app, the service stops running and the data won't be recieved (the socket to the server will close and the server won't send him any data and will store it in the database for the next time the user launchs the app and connects).
So this is one approach, but another on is the Push Notifications, that will launch a notification even if the entire app including the service, is closed. but the downside is, the way i see it, that i need to use a 3rd party component in my app and it increases the complexity.
I need help to decide whether or not to use the Push Notification, and also, how common is this feature in other Android apps?