本文介绍了sendMessage无法正常工作(可穿戴)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我使用sendMessage从Huawei p9(Android 6.0)向Android Wear(Sony)发送一些字节,则如果关闭了手持设备的屏幕,则消息不会传递.直到手机中的屏幕打开(1分钟内),可穿戴设备内部的通知才会更新! setUrgent有帮助吗?我已经将应用程序添加到大应用程序列表"中,该应用程序可以在屏幕关闭时正常工作.该应用程序已在WAKELOCK状态下工作.

If I'm sending some bytes using sendMessage from Huawei p9 (Android 6.0) into Android Wear (Sony) the messages are not delivered if the screen of handheld device is turned off. The notifications inside wearable are not updated until the screen in the phone is turned on (in 1 minute)! Will setUrgent help? I already added the application in "list of granded applications" that can work while the screen is off. The application already works in WAKELOCK state.

它是否适用于所有Android 6.0和更高版本的设备?

Is it a feature for all Android 6.0 and newer devices?

可以避免吗?有什么线索吗?

IS IT POSSIBLE TO AVOID THIS? ANY CLUES?

推荐答案

我已经花了3天的时间才能找到解决方案要解决此问题,只需启用 ALL 应用程序在首选项中:

I've waste 3 days to find the solutionTo fix this problem just enable for ALL applicationsin the preferences:

详细:

转到系统设置. (您可以在快捷方式中找到 通过下拉状态切换通知栏的一部分 屏幕顶部的滚动条)向下滚动到高级设置 然后进入电池管理器.转到受保护的应用选择. (这就是您在这里寻找的东西.这将控制 可以在屏幕关闭或不关闭的情况下运行.)

Go to the System settings. (which you can either find in the quick toggles portion of the notification shade by pulling down the status bar on the top portion of the screen) Scroll down to Advanced Settings and head on over into Battery Manager. Go to Protected Apps selection. (This is what you’re looking for here. and this will control what’s allowed to run when the screen is off and what isn’t.)

http://itechify.com/2016/02/01/how-to-fix-missing-push-notifications-on-huawei-smartphones/

这篇关于sendMessage无法正常工作(可穿戴)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 07:03