因此,我使用了Microsoft的pwabuilder.com,然后下载了Web视图版本。我输入了PWA URL,它的得分为95%,然后我下载了结果文件。
但是当我查看 android \ source \ app \ src \ main \ assets \ manifest.json 时,我发现:
{
"dir": "ltr",
"lang": "en-us",
"name": "Microsoft - Official Home Page",
"scope": "https://www.microsoft.com/*/*",
"display": "standalone",
"start_url": "https://www.microsoft.com/",
"short_name": "Microsoft - Off",
"theme_color": "transparent",
"description": "At Microsoft our mission and values are to help people and businesses throughout the world realize their full potential.",
"orientation": "any",
"background_color": "transparent",
"related_applications": [],
"prefer_related_applications": false,
"icons": []
}
我应该手动编辑它吗?我以为这就是为什么我进入自己的网站,以便它可以正确生成文件的原因?有趣的是,当我生成APK并安装到手机上时,我得到两个相同的应用程序图标,其中一个打开我的网站,另一个打开microsoft.com?