2017-02-21 121 views
0

我正在使用phonegap構建來爲iOS,Android和Windows構建我的應用程序。 如何指定(可能在config.xml中)phonegap構建應僅針對平板電腦構建,還是僅針對智能手機構建,或者針對所有三個平臺構建?爲平板電腦和/或智能手機構建Phonegap

回答

1

爲iOS,您可以設置config.xml中的target-devicepreference到 「手機」:

<preference name="target-device" value="handset" /> 

爲Android,你需要edit the manifest在科爾多瓦hook ...喜歡after_prepareafter_platform_add

對於窗戶......嗡嗡......小丑!

+0

Tnx。我認爲我瞭解iOS,我會看看android。你的意思是「百搭」是什麼意思? :)我現在實際上並不需要Windows的任何東西,我只爲智能手機構建,但有可以變成平板電腦的Windows筆記本電腦,未來我可能還需要爲此構建。 –

+0

我的意思是Windows,我不知道/關心! :-) – n00dl3

+0

因爲這導致我正確的答案(並且是唯一的答案:))我把它標記爲正確的。我只想添加此鏈接:http://docs.phonegap.com/phonegap-build/configuring/config-file-element/ –

相關問題