收到推送通知后强制停止后,WhatsApp服务将重新启动 [英] Whatsapp service restarts after force stop when push notification received

查看:221
本文介绍了收到推送通知后强制停止后,WhatsApp服务将重新启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试了解Samsung S5及更高型号的 whatsapp 服务的行为。在这些型号中, whatsapp 应用程序已嵌入到设备的ROM中,无法将其卸载。即使我强行停止应用程序, whatsapp 服务也会运行,并在收到推送通知时显示消息。

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.

我在Nexus 5设备上尝试了该设备,其中 whatsapp 不在ROM上。在这种情况下,强制停止后, whatsapp 无法接收推送通知,并且服务仍未运行。

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.

我怀疑三星为 whatsapp 应用程序提供了另一种特权。顺便说一下,我们正在从Android清单文件中注册到broadcastreceiver。

I am suspicious that Samsung has provided another privilege to whatsapp application. By the way we are registering to broadcastreceiver from Android manifest file.

在此先感谢

推荐答案

安装在 / system / app / system / priv-app 文件夹下的应用程序(大多数ROM捆绑的应用程序位于这些文件夹中,它们无法卸载),即使它们被用户强行停止也仍然可以接收推送通知。

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.

因此,三星不太可能为Whatsapp赋予某些特权,但它们ve将其与ROM捆绑在一起,然后将apk放入系统应用程序文件夹之一。

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.

这篇关于收到推送通知后强制停止后,WhatsApp服务将重新启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆