LED不是在Android上使用工作的工作灯统一推送通知(6.0.0.2) [英] Led not working on Android using Unified Push Notification of worklight (6.0.0.2)

查看:178
本文介绍了LED不是在Android上使用工作的工作灯统一推送通知(6.0.0.2)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用工作灯消费版6.0.0.2的UPN系统发送推送通知。

I'm using the UPN system of Worklight Consumer Edition 6.0.0.2 to send push notifications.

当我收到一个推送通知没有LED灯出现在Android上。为什么?
我尝试了:

When I receive a push notification no led light appears on Android. Why? I tried on:


  • 三星S4搭载Android 4.3;

  • 是Nexus 5采用Android 4.4;

  • 三星S3迷你的Andr​​oid 4.1.2。

我用WL.Server.createDefaultNotification建立通知有效载荷:

I use WL.Server.createDefaultNotification to build the notification payload:

var notificationObj = WL.Server.createDefaultNotification(notification.TITLE, badge,{});
notificationObj.GCM.sound="default";

然后我用notifyAllDevices推:

and then I use notifyAllDevices to push:

WL.Server.notifyAllDevices(userSubscription, notificationObj);

我的应用程序关闭,屏幕关闭。
其结果是:我成功地收到推送通知和播放声音,但没有领导可言

I have the app closed and the screen is switched off. The result is: I receive the push notification successfully and a sound is played, but no led at all.

推荐答案

作为由Android提供的,以允许脉冲的通知LED通知优先API (首发的Andr​​oid 4.1果冻豆及以上),是不是在工作灯使用。

The Notification priority API as provided by Android to allow for pulsing the notification LED (starting Android 4.1 "Jelly Bean" and above), is not available in Worklight.

如果您想工作灯产品设计师,以评估它添加到以后的版本中,考虑的提交功能请求

If you'd like Worklight product designers to evaluate adding it to a future release, consider submitting a feature request.

据我所知是没有办法的开发人员扩展应用程序中的code这个API的支持,所以有没有解决方法。

AFAIK there is no way for a developer to extend support for this API in the application code, so there is no workaround.

这篇关于LED不是在Android上使用工作的工作灯统一推送通知(6.0.0.2)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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