本文介绍了从phonegap桌面构建时未读取/发送config.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用phonegap桌面和开发人员应用程序来构建应用程序.除了我在config.xml文件中设置的首选项之外,一切似乎都在起作用.我已经设置:

I'm trying to build an app with phonegap desktop and the developer app. Everything seems to be working apart from the preferences I've set in the config.xml file. I've set:

<preference name="Fullscreen" value="true" />
<preference name="orientation" value="landscape"/>

但是,应用程序始终以屏幕顶部的状态栏和方向来显示,就像没有设置任何首选项一样.

However the app always build with the status bar at the top of the screen and the orientation acting as if there has been no preference set.

我尝试过OnePlus 3T和Samsung A3,它们都存在相同的问题.我认为这是因为没有读取config.xml ins吗?

I've tried on a OnePlus 3T and a Samsung A3, both having the same issues. I assume this is because config.xml ins't being read?

我尝试在Phonegap桌面中使用Hello World模板,该模板已启用方向和全屏首选项,但仍然无法正常工作.我还尝试过将文件移到www/目录中.

I've tried using the Hello World template in Phonegap desktop that has orientation and fullscreen preferences enabled and it still doesn't work. I have also tried moving the file inside the www/ directory.

推荐答案

问题是使用Phonegap桌面/应用程序不会以任何方式利用config.xml文件.但是,使用Phonegap构建确实可以,所以我现在改用它.

The issue was that using Phonegap desktop/app doesn't utilise the config.xml file in any way. Using Phonegap build does however, so I'm now using that instead.

这篇关于从phonegap桌面构建时未读取/发送config.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 17:11