简体   繁体   English

mobileconfig 文件中 webclip 负载中的半透明状态栏配置

[英]Translucent status bar configuration in webclip payload in mobileconfig file

When I develop web app, I can set <meta name="apple-mobile-web-app-capable" content="yes"/> , so when user will create web clip with safari browser on ipad, this page will be opened in full screen mode.当我开发网络应用程序时,我可以设置<meta name="apple-mobile-web-app-capable" content="yes"/> ,所以当用户在 ipad 上使用 safari 浏览器创建网络剪辑时,将打开此页面在全屏模式下。

Also I can set status bar to be translucent by using next meta tag.我也可以使用下一个元标记将状态栏设置为半透明。

<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>

Also I am able to configure webclip with .mobileconfig file.我还可以使用 .mobileconfig 文件配置 webclip。 Web Clip Payload 网页剪辑有效载荷

But here I can not found option of payload to set status bar translucent.但是在这里我找不到有效载荷的选项来设置状态栏半透明。 In documentation I have found only URL, Label, Icon, IsRemovable keys.在文档中,我只找到了 URL、标签、图标、IsRemovable 键。 But in one example I also found FullScreen key wich set page to full screen mode but with black status bar.但在一个示例中,我还发现 FullScreen 键将页面设置为全屏模式但带有黑色状态栏。

Question: May be somebody knows if it is possible to set status bar translucent in web clip payload in mobileconfig file?问题:可能有人知道是否可以在 mobileconfig 文件中的 web 剪辑有效负载中设置半透明状态栏?

I had the same problem.我有同样的问题。 You can't do it with mobileconfig.你不能用 mobileconfig 做到这一点。

I solved it in following way:我通过以下方式解决了它:

First set the meta name apple-mobile-web-app-status-bar-style and apple-mobile-web-app-capable in your html head section on your website.首先在您网站的 html head 部分中设置元名称 apple-mobile-web-app-status-bar-style 和 apple-mobile-web-app-capable 。

After this you have to delete your profile with the webclip on your iOS device and reinstall it.在此之后,您必须使用 iOS 设备上的 webclip 删除您的个人资料并重新安装。 This will clean the cache on your iOS device an reread the meta name tags from your html file.这将清理您的 iOS 设备上的缓存并从您的 html 文件中重新读取元名称标签。

Best regards Filellinas最好的问候 Filellinas

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM