应用程序未运行时,小米未收到通知 [英] Xiaomi does not receive notification when application is not running

查看:30
本文介绍了应用程序未运行时,小米未收到通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个使用 Google 推送通知的应用程序.应用程序在小米手机中运行时会收到通知,否则当它被杀死时不会收到通知.

I am working on an application where I am using Google Push Notification. Application receives notification when it is running in Xiaomi phone otherwise when it's killed it does not receive notification.

如果我们想在应用程序被杀死时收到通知,那么我们需要从小米的安全应用程序手动允许自动重启应用程序.我想要在不询问用户的情况下以编程方式执行此操作的任何技巧.有没有办法做到这一点?

If we want to receive notification if application is killed then we need to allow auto restart app manually from security app of xiaomi. I want any trick to do this programmatically without asking user. Is there any way to do this ?

http://en.miui.com/thread-33826-1-1.html

推荐答案

小米有五个设置需要手动完成才能正常运行任何应用程序.我对此进行了大量研究,但无法以编程方式修复这些设置.这些是设置:

There are five settings that needs to be done manually in case of xiaomi to properly run any application. I have done a lot of research on this and there's no way to fix these settings programmatically. These are the settings:

  1. 自动启动 -> 开启(切换并重启您的应用)
  2. 开发者选项下的 MIUI 优化 -> 关闭
  3. Developer Options 下的内存优化 -> LOW/OFF
  4. 对 Battery & 下的后台活动没有限制性能设置
  5. 节电模式 -> 关闭

还有许多其他设备需要手动设置才能使应用程序按预期工作,例如联想,一些 Micromax 设备.公司对后台活动施加这些限制以提高整体电池寿命.某些应用(如 facebook 和 whatsapp)可以正常工作,因为它们可能已作为系统应用包含在内.

There are many other devices in which the manual settings needs to be done in order for the app to work as expected e.g. Lenovo, some Micromax devices. Companies impose these kind on restrictions on background activities to improve the overall battery life. Some apps like facebook and whatsapp work correctly as these might have been included as system apps.

这篇关于应用程序未运行时,小米未收到通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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