[英]IBM Worklight 5.0.6 - How to show push message in notification area while app is in the foreground
I want to show the push message in the notification area when app is up and running in the foreground. 当应用启动并在前台运行时,我想在通知区域中显示推送消息。 Currently when App is in the background (minimized) and a message comes in then it shows in notification area/bar at that time only. 当前,当App处于后台(最小化)并且有消息进入时,它仅在当时显示在通知区域/栏中。
Is this possible to do in Worklight? 这可以在Worklight中完成吗? Or do I have to do some native level change? 还是我必须进行一些本机级别更改?
In iOS - certainly not. 在iOS中-当然不是。 There is no ability to extend the OS behavior. 无法扩展操作系统行为。
In Android - Android allows for some extending of the code, but I have never seen such an implementation not in Worklight nor in native apps... 在Android中-Android允许对代码进行某些扩展,但是我从未见过这样的实现,无论是在Worklight还是本机应用程序中……
When the app is in the background you can display a dialog, add some visual cue in the app itself, but use the notification bar? 当应用程序在后台运行时,您可以显示一个对话框,在应用程序本身中添加一些视觉提示,但是使用通知栏? ... ...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.