phonegap-build

Create a project using my app as a starter in Phonegap

混江龙づ霸主 提交于 2019-12-23 05:22:44
问题 My app's git repository contain only the www folder and so it looks like this: css img js res config.xml icon.png index.html To start development I need to: Clone my app into www-app Create a phonegap app phonegap create testapp com.example.testapp "Test" remove testapp/www and copy www-app to testapp/www Is there a easier to way to set this up? Maybe I can specify a project to build from on phonegap create instead of the phonegap-start project. 回答1: I have not tried this with phonegap CLI

android emulator doesn't display app

拥有回忆 提交于 2019-12-23 02:22:18
问题 I installed phonegap cli and and android sdk cli. I tried to create a new project with default parameter : phonegap create -n-name "mypoc" --id "com.cavissima.poc" --template hello-world after what i added android platform for testing : phonegap platform add android And finally i tried to launch it on android emulator : phonegap run android --verbose in the command line i see a lot of loop on this action: Running command "getprop emu.uuid" on emulator-5554... when finaly the android emulated

Can't get cordova-plugin-statusbar to set color on Android

我只是一个虾纸丫 提交于 2019-12-22 19:24:27
问题 This question is similar to this one however I've tried everything and still can't get cordova-plugin-statusbar to work. I'm using PhoneGap Build to create a PhoneGap / Cordova app. In config.xml I have the plugin included like so: <gap:plugin name="cordova-plugin-statusbar" source="npm" /> And then I have some JavaScript to set the status bar color: document.addEventListener('deviceready', SetStatusBarColor, false); function SetStatusBarColor() { if (StatusBar) { StatusBar

Cordova not running normally

可紊 提交于 2019-12-22 11:09:04
问题 The problem is: I have index.html with this code: <script type="text/javascript" src="../platforms/android/assets/www/cordova.js"> When I run this file in a browser, there is alert: gap_init:2 Click "Ok" and I have second alert: [true] gap:[null,"App","overrideBackbutton","App1966010284"] In my console output I have: Endless loop processMessag failed: invalid message: " " Question: How I can fix this? Linux Ubuntu 14.04, cordova v. 4.2.0, phonegap v. 3.6.3-0.22.0 Thank you! 来源: https:/

Phonegap Build facebook Connect Plugin (android)

倖福魔咒の 提交于 2019-12-22 11:06:18
问题 I have a strange problem using the facebook plugin with phonegap build. It sounds like a certificate problem but I can't figure it out. I tried the sample code found here : github.com/amirudin/pgb-fbconnect I followed instructions in the readme.md file. When I first start the android app and when I click on "login" button, everything works fine and I can connect myself to the facebook app. Now, I hit the logout button. Ok again, it works. But if I hit the login button again, I have a facebook

iOS 6 iPhone 5 App NOT fullscreen in Phonegap Build?

泄露秘密 提交于 2019-12-22 10:38:29
问题 Hey all i am running my app and it seems to be fullscreen on my android device but it has the black bars on top/bottom on the iPhone 5.... What settings do i need to set for those to work? The way my app looks on my android is this: And the way it looks on my iPhone 5 is this: 回答1: For your app add the default image for the iphone 5, Default-568h@2x.png . That automatically gets rid of the bars. 回答2: to give a bit more detail, add this line, and the corresponding image to your config.xml file

Is there a way to test phonegap build apps on different platforms

风流意气都作罢 提交于 2019-12-22 09:50:30
问题 So I developed a phonegap app using Android development sdk. And I used Phonegap build to build my project for Simbian, WebOS, Windows, iOS, and Blackberry. But I don't have devices for those platforms to test my app on. And I really don't want the headache of setting up those development environments, I mean, that's why they have Phonegap Build right? I have had complaints from WebOS, Simbian, and Windows that my app doesn't work. And haven't gotten the license gen working on Blackberry (no

Landscape and portrait images for phonegap BUILD splash screen?

馋奶兔 提交于 2019-12-22 08:55:23
问题 I wondered if it was possible to have 2 seperate images in a phonegap build app for the splash screen? One for potrait and one for landscape. At the moment, when I open the app, it displays the splash screen and if i change orientation, it pixelates :-( I've got this in the config.xml file at the moment... <gap:splash src="splash/android/ldpi.png" gap:platform="android" gap:density="ldpi" width="320" height="480"/> <gap:splash src="splash/android/mdpi.png" gap:platform="android" gap:density=

cordova-plugin-whitelist working on Android but not iOS (Phonegap Build)

笑着哭i 提交于 2019-12-22 05:38:35
问题 I'm working on a JavaScript app wrapped in Cordova and built with Phonegap Build. We're including cordova-plugin-whitelist from npm in our build and have added <access origin="*" /> to our config.xml and an open CSP ( <meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'"> ) in our index.html. The app works fine on Android and talks to our server without issues, but on iOS all requests fail

Cordova Hide Status Bar

放肆的年华 提交于 2019-12-22 04:13:21
问题 I'm building an application for iPad with Phonegap and Framework7 and I can't seem to get the status bar to be hidden on the iPad no matter what I do. I've tried to google out a few tutorials, including the following questions: How to remove iOS status bar with Phonegap Build? How to completely hide the status bar in iOS using Cordova? Cordova/Phonegap ignores fullscreen preference in config.xml on iOS I've tried the solutions provided in all the answers of the questions above and my status