当我在我的iPad Pro 12.9in浏览器中打开我的应用程序,同时在我的桌面上使用PhoneGap应用程序时,它会像应该的那样打开。但当我安装应用程序并打开它时,它以较低的分辨率打开。我看到这可能是因为较低的分辨率闪屏,但我为iPad pro设计了一个分辨率为2732x2048的新闪屏。
我是否应该更改config.xml文件中的某些内容?我已经尝试了很多,但仍然没有找到解决方案。
These are the imported splash images for iOS with their resolutions
This is how the app looks when installed (1)
This is how the app looks when installed (2)
This is how the app should look - like it is now in the browser (1)
This is how the app should look - like it is now in the browser (2)
发布于 2018-06-13 04:00:53
你把你的新闪屏添加到你的config.xml上了吗?
您需要在该文件中包含以下条目:
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<splash src="<your path>/Default@2x~universal~anyany.png" />
<splash src="<your path>/Default@2x~universal~comany.png" />
<splash src="<your path>/Default@2x~universal~comcom.png" />
<splash src="<your path>/Default@3x~universal~anyany.png" />
<splash src="<your path>/Default@3x~universal~anycom.png" />
<splash src="<your path>/Default@3x~universal~comany.png" />
</platform>
在我的例子中,路径是<project>/res/ios
要使用这些工具,您至少需要CLI7.0.1或7.1.0才能面向iOS Phonegap版本4.4.0
其他信息:
https://stackoverflow.com/questions/50818792
复制相似问题