phonegap-build

Phonegap Geolocation connected to Server API

泄露秘密 提交于 2019-12-12 03:34:08
问题 Into the mobile app I'm adding GeoLocation for search results which is connected to webserver API however it's always returning "not available". Javascript function getCurrentLocation() { navigator.geolocation.getCurrentPosition(geolocationSuccess,geolocationError, { enableHighAccuracy: true } ); } function geolocationSuccess(position) { var params="lat="+position.coords.latitude; params+="&lng="+position.coords.longitude; callAjax("reverseGeoCoding",params); } function geolocationError(error

Can't read a file from android directory using cordova-plugin-file plugin

独自空忆成欢 提交于 2019-12-12 03:25:41
问题 I'm trying to read a txt file located in the "sdcard" directory of my android phone. but the "onloadend" event of the "FileReader" never fires, in fact none of the events seem to work. I'm building the app with "phonegap-build" and I'm importing the cordova-plugin-file plugin by adding to the "config.xml" file the line: <gap:plugin name="cordova-plugin-file" source="npm" /> The code is the following (the variables and functions are in portuguese, sorry): // Importar dados $("#ImportarDados")

Can't override preference using PhoneGap Build (order in generated config.xml is wrong)

无人久伴 提交于 2019-12-12 03:17:42
问题 I am using cordova-plugin-statusbar to customize the appearance of my app's statusbar on iOS. Specifically, I want to change the value of StatusBarOverlaysWebView to false, so I include the following line in my config.xml : <preference name="StatusBarOverlaysWebView" value="false" /> This works great when I test using a local XCode build. When I build on PhoneGap Build, however, the default setting for this value (which is true ) is not overridden. After considerable head-scratching, I

Websocket not working on my Android app (with Phonegap Build)

痴心易碎 提交于 2019-12-12 03:17:37
问题 I tried to develop a simple mobile application that connect to a websocket server. I used Phonegap Build to make my Android .apk, here's the html code : <html> <head> <title>Testing websockets</title> </head> <body> <div id="messages"></div> <script type="text/javascript"> var webSocket = new WebSocket('ws://192.168.82.1:8080/WebSocket/websocket'); webSocket.onerror = function(event) { onError(event) }; webSocket.onopen = function(event) { onOpen(event) }; webSocket.onmessage = function(event

Android PhoneGap Config XML user-permission

霸气de小男生 提交于 2019-12-12 02:55:12
问题 I have started working on PhoneGap. I am using PhoneGap build to compile my app. I was trying to use the camera but I am stuck in config.xml After alot of searching everywhere I am not able to find away to use user-permission Can anyone please tell me how I can use this in my config.xml file <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> A sample XML would be great. Thanks 回答1: Add this line to your config.xml <feature name="http://api.phonegap.com/1.0/file" /><!

Error - One of your plugins required the gradle android build tool to build

半腔热情 提交于 2019-12-12 02:54:25
问题 I am trying to build my android app using Phonegap Build, but I am getting this error Error - One of your plugins required the gradle android build tool to build What am I missing here? 回答1: Cordova/Phonegap switched to using Gradle instead of Ant for its build tool. Gradle allows plugins to dynamically request library dependencies rather than have to bundle them as JARs, so newer plugins tend to prefer Gradle as it plays better alongside other plugins. AFAIK Ant is still the default for

This binary does not seem to have been built with Apples Linker

流过昼夜 提交于 2019-12-12 02:52:29
问题 I've built an app using phonegap build for ios and android. Both versions work great using their respective developer versions. The android app was sent off to google play smoothly and was quickly available on the android market. From there it is downloaded and installed without a hitch. The fate of the ios version is not so great. When I upload the ipa (mmm, beer) phonegap build gives me using Application Loader I get the following error, ERROR ITMS-9000: "The binary is invalid. The

Angular 2 items don't update when changed from phonegap notification dialog

*爱你&永不变心* 提交于 2019-12-12 02:51:56
问题 I am building an phonegap app with angular2. I want to show a confirmation dialog and in success callback to update elements from angular2 view. When I do this nothing happens right away, but if I update other model on the page (what is linked with angular) my update is updated. For confirmation dialog I use phonegap plugin: cordova-plugin-dialogs and the method called is: navigator.notification.confirm(...) . Here is my full code of my Component: AboutComponent = ng.core .Component({

PhoneGap build is not updating all of my files

依然范特西╮ 提交于 2019-12-12 02:28:17
问题 PhoneGap build is not updating all of my files? I have been using Build for a while, but now the downloaded application seems like not contains the css file. I tried to delete the application then upload new zip file and rebuild it but same issue appear. I renamed the file extension .apk to .zip and i opened the file I recognize that the css folder is not in the same root as other folder like .js and i think it is the problem, but i don't why this happened. Any help?? 回答1: I fixed the issue

phonegap build error plugin is not on npm: Device

荒凉一梦 提交于 2019-12-12 02:24:02
问题 I am using phonegap-version cli-5.2.0 i could not build apk. error is here below Error - The following plugin, plugin version or a dependancy of this plugin is not on npm: Device my config.xml this is my config file my plugins are given below org.apache.cordova.core.geolocation,Device,Logger,Compass,NetworkStatus,Debug Console,Geolocation,SplashScreen,Battery,Globalization <?xml version="1.1" encoding="utf-8"?> <widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0