闪屏没有的PhoneGap构建工作 [英] Splash screens not working in PhoneGap Build

查看:159
本文介绍了闪屏没有的PhoneGap构建工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不能让闪屏在所有的工作,无论是在Android或iOS。

我使用的PhoneGap构建和我设置的config.xml这个样子,现在是V3.0.0。

 <?XML版本=1.0编码=UTF-8&GT?;
<小部件的xmlns =htt​​p://www.w3.org/ns/widgets
    的xmlns:缺口=htt​​p://phonegap.com/ns/3.0.0
    ID =本身份识别码
    版本=1.0.0>
<名称>&MYNAME LT; /名称><描述>
    mydesc
< /描述><作者>
< /笔者>< preference NAME =权限价值=无​​/>
< preference NAME =DisallowOverscrollVALUE =真/>
< preference NAME =Android系统的minSdkVersionVALUE =14/> &所述;! - JB 4.0 - >
< preference NAME =全屏VALUE =真/><图标SRC =的icon.png/>
<差距:平台名称=IOS/>
<差距:平台名称=机器人/>
<差距:泼SRC =splash.png差距:平台=IOSWIDTH =320HEIGHT =480/>
<差距:泼SRC =splash.png差距:平台=机器人WIDTH =320HEIGHT =480/>< /部件>

我已经采取了个人信息了。

该应用程序工作正常,否则,但我从来没有闪屏的工作,永远,即使它是PhoneGap的2.7.0和2.9.0和Android的刚。

的splash.png和的icon.png实际上目前相同的图像。我曾与不同的人,虽然尝试。我只在iOS上开始测试最近与PhoneGap的生成默认的图标似乎只拿出iOS中做,我决定我需要把一个自定义的开机画面。

我找不到在哪里或如何使用标签,除了官方的文档,甚至他们在那里展示一个例子config.xml和标签的例子,但他们不说往哪里放他们或是否有任何其他规则。


解决方案

所以这个问题现在似乎是固定的。

正如你可以从我最初的问题看我的编码错误配置。该版本PGB选择code不应该是的xmlns:缺口= http://phonegap.com/ NS / 3.0.0 ,但是:

 < preference NAME =PhoneGap的版本值=3.0.0/>

我却对PGB有点为这个作为文档不明确(尽管他们正在改善)。

反正 - 让你的闪屏的工作使用这里的信息:

<$p$p><$c$c>http://docs.build.phonegap.com/en_US/configuring_icons_and_splash.md.html#Icons%20and%20Splash%20Screens

我现在用PGB 3.3.0,似乎所有的罚款。

I can't get splash screens working at all, in either Android or iOS.

I'm using PhoneGap Build and I've set config.xml like this, which is for v3.0.0 now.

<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns = "http://www.w3.org/ns/widgets"
    xmlns:gap = "http://phonegap.com/ns/3.0.0"
    id        = "myid"
    version   = "1.0.0">


<name>myname</name>

<description>
    mydesc
</description>

<author>
</author>

<preference name="permissions" value="none"/>
<preference name="DisallowOverscroll" value="true"/>
<preference name="android-minSdkVersion" value="14" />       <!-- JB 4.0 -->
<preference name="fullscreen" value="true" />

<icon src="icon.png" />
<gap:platform name="ios" />
<gap:platform name="android" />
<gap:splash src="splash.png" gap:platform="ios" width="320" height="480" />
<gap:splash src="splash.png" gap:platform="android" width="320" height="480" />

</widget>

I've taken the personal info out.

The app works fine otherwise but I've never got the splash screen to work, ever, even when it was for PhoneGap 2.7.0 and 2.9.0 and just Android.

The splash.png and icon.png are actually the same image at the moment. I've tried with different ones though. I only started testing on iOS recently and the PhoneGap Build default icon only seems to come up in iOS do I decided I need to put a custom splash screen.

I cannot find an example of where or how you use the tags, except the official docs and even there they show an example config.xml and the tags but they don't say where to put them or if there are any other rules.

解决方案

So this issues seems to be fixed now.

As you can see from my initial question I was coding the config wrong. The PGB versions selection code should not be "xmlns:gap = "http://phonegap.com/ns/3.0.0" but:

<preference name="phonegap-version" value="3.0.0" />

I do blame PGB a bit for this as the docs weren't clear (though they are improving).

Anyway - get your splash screens working use the info here:

http://docs.build.phonegap.com/en_US/configuring_icons_and_splash.md.html#Icons%20and%20Splash%20Screens

I'm now using PGB 3.3.0 and it seems all fine.

这篇关于闪屏没有的PhoneGap构建工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆