2016-07-28 39 views
2

我想知道我怎麼能在的PhoneGap構建我的應用程序更改默認名稱,上傳壓縮文件時,的PhoneGap構建給人PG構建應用作爲其默認名稱,我該如何改變它?更改默認名稱PG構建應用程序中的PhoneGap構建

Click here to see the screenshoot

PhoneGap的接口提供輸入建議應用程序名稱,但沒有按鈕提交更改。

回答

3

您是否注意到截圖右側的提示?您需要在您的壓縮文件的根文件夾中包含一個config.xml文件,該文件允許您爲應用程序指定名稱,版本,圖標,啓動畫面,插件和其他許多設置。

這是一個示例config.xml。注意第三行的應用程序名稱:

<?xml version='1.0' encoding='utf-8'?> 
<widget id="com.myapp.mobile" version="2.25" xmlns="http://www.w3.org/ns/widgets"> 
    <name>My Amazing App</name> 
    <description>This is the best app ever.</description> 
    <author email="[email protected]" href="http://www.myapp.com">Amazing App Team</author> 
    <preference name="phonegap-version" value="cli-6.3.0" /> 
    <preference name="permissions" value="none" /> 
    <preference name="orientation" value="portrait" /> 
    <preference name="target-device" value="universal" /> 
    <preference name="fullscreen" value="false" /> 

    <plugin name="cordova-plugin-inappbrowser" spec="1.3.0" /> 
    <plugin name="cordova-plugin-device" spec="1.1.2" /> 
    <plugin name="cordova-plugin-splashscreen" spec="3.2.2" /> 

    <icon src="icon.png" /> 
    <splash src="splash.png" /> 
</widget> 
+1

非常感謝你,它的工作原理,實際上它是一個不放置config.xml www文件夾的情況。 – Djallas

相關問題