这是我的第一个问题,请原谅我,如果它的格式不完美。
目标
使用Dreamweaver通过Phonegap构建本地应用程序,包括条形码扫描器插件https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/BarcodeScanner
问题
我尝试了所有iOS版本,都在纵向模式下显示条形码扫描器,除了iOS 6。它会显示条形码扫描器插件的横向方向。如果只是这个问题,我可以处理,但只有在我将其保持在纵向方向时才能扫描。
我整天都在谷歌上搜索,没有任何解决方案。
这是我的config.xml文件:
<feature name="http://api.phonegap.com/1.0/device" />
<preference name="phonegap-version" value="2.2.0" />
<preference name="orientation" value="portrait" />
<preference name="target-device" value="universal" />
<preference name="fullscreen" value="false" />
<preference name="webviewbounce" value="false" />
<preference name="ios-statusbarstyle" value="black-opaque" />
<gap:plugin name="BarcodeScanner" />
<gap:plugin name="ChildBrowser" />
<access origin="*" />
我希望在所有操作系统中使用一款纵向条形码扫描器。有没有解决这个问题的方案?
编辑:已找到解决方案
至少,我将我的所有数据加载到了xcode中。下载了最新版本的条形码扫描器插件。在xcode中设置它,编译它,它就能工作了。
似乎问题是Phonegap使用的条形码扫描器插件版本过时,当通过Dreamweaver/Phonegap网站创建构建时会出现此问题。