如何使用Cordova在系统状态栏上放置图标 [英] How to put an icon to system status bar with Cordova

查看:65
本文介绍了如何使用Cordova在系统状态栏上放置图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用 Cordova 将应用程序图标放置在 iOS Android 上的系统状态栏(顶部)上(例如时钟)设置闹钟时显示图标).有插件可用吗?

I need to put an app icon to the system status bar (on top) on iOS and Android with Cordova (like the clock icon when you set an alarm). Is there any plugin available?

推荐答案

在Android的状态栏中,您无法在右侧添加图标(系统图标),因为这是系统专用的.您不是系统用户,因此您不应该位于状态栏上.然而;您可以在左侧发布(这是显示应用程序图标的位置).甚至 if 都是系统用户,除非您可以修改平台的源代码...否则无法实现.

In Android on the status bar you cannot add icons to the right (system icons) as this is reserved for system. You're not system, therefore you should not be on the status status bar. However; you can post on the left side (which is where app icons show up). Also even if you were system, unless you can modify the source code of the platform... this cannot be achieved.

这篇关于如何使用Cordova在系统状态栏上放置图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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