简体   繁体   English

应用关闭时,Android 5 Asus ZenFone 2会阻止推送通知

[英]Android 5 Asus ZenFone 2 blocking push notifications when app close

I have been testing my app on an Android 5 ZenFone 2. This phone contains a piece of Asus software called autostart manager. 我已经在Android 5 ZenFone 2上测试了我的应用程序。这部手机包含了一块称为自动启动管理器的华硕软件。

Some detrimental scenarios for my cordova app: 我的cordova应用程序的一些有害方案:

  1. After app is installed autostart manager automatically denies it autostart. 安装应用后,自动启动管理器会自动拒绝它的自动启动。 The big problem here is that the app doesn't receive push notifications when it is neither running in foreground or background. 这里最大的问题是,当应用程序既不在前台运行时,也没有在后台运行时,都不会收到推送通知。 If the user kills the app from task manager then no more notifications (unlikely what the user desires). 如果用户从任务管理器中终止了该应用程序,则不再有通知(用户可能不需要的通知)。
  2. The app appears to be killed automatically a few mins after being placed in the background. 放置在后台几分钟后,该应用似乎自动被杀死。 I am assuming this is autostart trying to conserve memory. 我假设这是尝试节省内存的自动启动。 Again no push notifications. 再次没有推送通知。

My app is functionally reliant on being able to receive push notes when not in foreground. 我的应用程序在功能上依赖于不在前台时能够接收推送注释。

I reckon most average users are not aware that their apps may not be receiving push and therefore not fully functional. 我认为大多数普通用户都不知道他们的应用程序可能没有收到推送,因此无法完全运行。

I am wondering: 我想知道:

  1. Are there autostartmanager equivalents for other Android devices doing the same thing? 是否有其他Android设备在执行相同操作的autostartmanager等效项?
  2. Is it possible to beat this software and allow push notification always to be received by editing manifest configuration? 是否有可能击败该软件并允许通过编辑清单配置始终接收推送通知?

I believe there is no way too make push notifications work unless you app is marked as "allowed" to start in the Autostart Manager. 我相信除非您的应用在自动启动管理器中被标记为“允许”启动,否则无法使推送通知正常工作。

There are a lot of app like the Asus Autostart Manager in the Play Store, but generally a user needs to explicitly install one, while the Asus one is preinstalled and non-removable (at least it starts again after the next update which happens quite often for Asus). Play商店中有很多类似Asus Autostart Manager的应用程序,但通常用户需要明确安装一个应用程序,而Asus则是预先安装且不可移动的(至少在下一次更新后它会再次启动,这经常发生)对于华硕)。

I was facing the same problem. 我面临着同样的问题。 Go to -> Sound & Notification -> Notification access -> Enable for ZenUI Launcher. 转到->声音和通知->通知访问->为ZenUI Launcher启用。 Go to -> Apps and enable notificatio 转到->应用并启用通知

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM