如何使用PWA在IOS设备中显示主屏幕提示 [英] How to show home screen prompt in IOS device using PWA
问题描述
我是PWA的新手,我被困在一项任务上。
I am new to PWA and I am stuck on one task.
这是我的 manifest.json
文件,它有助于向Android设备显示添加到主屏幕弹出窗口。
Here is my manifest.json
file which helps to display add to home screen popup to android device.
{
"short_name": "The Cozy",
"name": "The Cozy",
"icons": [
{
"src": "/img/app-icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/img/app-icon-512x512.png",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "/img/app-icon-64x64.png",
"sizes": "64x64",
"type": "image/png"
}
],
"start_url": "/login",
"display": "standalone",
"theme_color": "#ffc107",
"background_color": "#ffffff"
}
但问题是它没有在IOS设备中显示。有没有办法在使用注册工作者的 IOS
设备上显示它?
But the problem is It doesn't show in the IOS device. Is there any way to show it on IOS
device using register worker?
任何人都会非常感激。谢谢。
Any would be highly appreciated. Thank you.
编辑:1
我们甚至可以打开共享标签
Can we even open the share tab
这个^^^^
推荐答案
Manifest尚未由iOS管理(目前在开发中)。有一个有趣的库可以自动添加iOS的基本元素。但目前还没有办法显示主屏幕弹出窗口......
Manifest is not managed by iOS yet (in development currently). There is an interesting library to add the essential elements for iOS automatically. But there isn't no way to show a home screen pop-up at this moment...
https://github.com/GoogleChromeLabs/pwacompat
您可以在此处关注iOS上的功能状态:
https://webkit.org/status/#specification-web -app-manifest
You can follow the status about features on iOS here : https://webkit.org/status/#specification-web-app-manifest
这篇关于如何使用PWA在IOS设备中显示主屏幕提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!