We are trying to understand the behavior of whatsapp
service in Samsung S5 and above models. In these models whatsapp
application is embedded to the ROM of the device, which you cannot uninstall it. Even I force stop the application, whatsapp
service becomes running and displays the message when a push notification received.
I have tried it in Nexus 5 device on which whatsapp
is not on ROM. In this case after force stop, whatsapp
cannot receive push notification and service is still not running.
I am suspicious that Samsung has provided another privilege to whatsapp
application. By the way we are registering to broadcastreceiver from Android manifest file.
Thanks in advance,
Apps that are installed under /system/app or /system/priv-app folders (most of the ROM bundled apps are in those folders and they cannot be uninstalled) can still receive push notifications even if they are force stopped by user.
So, it's not likely that Samsung gives some privilege to Whatsapp, but they've just bundled it with the ROM and put the apk into one of system app folders.
Android has made changes or restricted from Android 3.0 installed app has to be opened atleast once to start service or receive broadcast. , for 3rd party or installed application if the services are killed , the application should be opened at least once . So in case of Nexus 5 whats app is a 3rd party app , where as in Samsung it is a system app so it has permission to start service with out launching the application.