问题
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?
回答1:
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.
回答2:
I think it's impossible to customize the system status bar on iOS.
You can manage to add a widgets instead.
来源:https://stackoverflow.com/questions/39421708/how-to-put-an-icon-to-system-status-bar-with-cordova