phonegap-build

PhoneGap cross domain ajax with PhoneGap developer app and cli

霸气de小男生 提交于 2019-12-08 04:55:33
问题 When doing ajax cross domain calls with PhoneGap developer app and CLI only GET calls and POST with no data success, POST call with data is not working . If trying local, everything is working fine. I did set in config.xml access origin="*" . Also did set $.support.cors = true; in script. Here is example I am doing on Hello world app from PhoneGap. <script type="text/javascript"> $(document).bind("ready", function() { $.support.cors = true; test(); }); </script> <script> function test(){ $

Facebook plugin: init not called with valid version

随声附和 提交于 2019-12-08 04:11:33
问题 I use phonegap build to create debug version for android. I want to use facebook plugin. In Config.xml I have <gap:plugin name="com.phonegap.plugins.facebookconnect" version="0.4.0"> <param name="APP_ID" value="509210995889450" /> <param name="APP_NAME" value="Food share" /> </gap:plugin> I use the file facebookConnectPlugin.js which is from the official plugin Github for facebook. calling: facebookConnectPlugin.login([], success, fail); I get: Error: init not called with valid version Error

Phonegap build app - inappbrowser window is not shown automatically

谁都会走 提交于 2019-12-08 03:27:51
问题 We need to create a simple iOS App that is wrapper for some existing website (will be used internally, not for Apple Store of course). We're using Phonegap Build service and built a few successfull apps already. But with this app we have some issue. We want the App opens inappbrowser window when starts, and that's all we need. We include plugin in config.xml: <plugin name="cordova-plugin-inappbrowser" source="npm" spec="~1.3.0" /> then we have a js code that should open inappbrowser

How to hide grey scrollbars on a DIV in Android - they only show when you cannot scroll

戏子无情 提交于 2019-12-08 03:16:42
问题 I have a simple HTML/Jquery app compiled with Phonegap Build v3.1.0. I am using a DIV with style="width:100%;overflow:scroll;" to allow users to scroll content inside the DIV without scrolling the main page. When the DIV's content is small (no scrolling possible) there are thin grey lines on the right and bottom edge of the DIV. They do not touch. I am testing on a Nexus 7 running Android 4.4.2. When the content inside is large enough, the bars disappear and the scrolling performs as expected

Phonegap Build , App icon does not apear

无人久伴 提交于 2019-12-07 23:44:24
问题 I am updating my currently app. Having problems with getting my app icon to show in notification using the Local Notification plugin. https://github.com/katzer/cordova-plugin-local-notifications/ I have my notification setup as: window.plugin.notification.local.schedule({ id: id, ongoing: true, autoCancel: false, autoClear: false, title: "Now Playing:", text: title, icon: "res://icon.png", smallIcon: "res://icon.png", }); I have an icon.png file in the following locations: /www /www/img /www

How to add separate Portrait and Landscape splash Images to Android config.xml gap:splash

我只是一个虾纸丫 提交于 2019-12-07 16:14:07
问题 The question here is how to allow for separate (landscape and portrait) splash images in PhoneGap. 回答1: Unable to find a satisfactory answer for a long time, I finally spent a few hours messing with it and was able to get it to work in the following way: define two items for each android size- on the portrait files, DON'T put width and height attributes, and on the landscape DO put them. Here is my code so others can follow: EDIT: THE CODE BELOW IS FOR PHONE GAP BUILD VERSIONS 2.7 THROUGH 3.0

PhoneGap iOS can't play video using HTML 5

戏子无情 提交于 2019-12-07 11:55:05
问题 I'm building phonegap app and I need to play video in it. I know in order to play video on Android, I need to use one of the plugins available, but to play video on iOS, I can use HTML 5 video tag. I have these lines of code: <div id="video"> <video id="video01" width="300" height="300" controls> <source src="images/test2.mp4" type="video/mp4" /> </video> </div> I can see "video box", but I cannot play video for some reason. In console I don't see any errors. Video I'm using is from this page

crosswalk-project error ' Building ABI 'armeabi-v7a' failed'

与世无争的帅哥 提交于 2019-12-07 11:32:04
问题 I'm using ubuntu 16.04 and crosswalk-project with Phonegap/Cordova to make my hybrid app. I'm compiling the exemple: https://crosswalk-project.org/documentation/android/build_an_application.html And i got this error: I 'googled' about this error and I founded nothing to solve me. What it says? 回答1: You should check the build logs. In my case everything was pretty simple. I forgot to put icon.png that was specified in manifest.json. 回答2: Maybe you did't install latest sdk. I think it pick for

android emulator doesn't display app

做~自己de王妃 提交于 2019-12-07 04:03:26
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 is displying i can't find my app in it.if it note: the android run realy when trying to type some text

Cordova start app very slow

强颜欢笑 提交于 2019-12-06 16:32:31
I build an app with cordova. The app itself is very fast. But the start of the app(the time from the click on the button till the first screen shows ) it more then 8 sec. How can I make it faster?? I know that many apps wrote with cordova and I dont think that it take 8 sec for those apps. I dont need any feature of cordova only internet access and show the page. no camera no permissions.. Thanks Keeping all the sources locally also won't help you much. You have two options Minimize all the source js and CSS files . This will work for smaller js and CSS files. For larger js and CSS use lazy