phonegap

How to get a picture from phonegap to a remote XPage?

匿名 (未验证) 提交于 2019-12-03 08:59:04
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've built an Phonegap App with version 1.6 on my iPad an set the ulr to an XPage on the Domino Server now to my problem: When I take a picture on the iPhone and upload it to my XPage using the function takePicture the "returnvalue" is a String like this data:image/jpeg;base64,file://localhost/var/mobile/Applications/C1ABCAD3-5F54-45AB-81B0-A242940B58CB/tmp/photo_001.jpg is there a chance to get the file uploaded and not the string? here is the code I'm using: XSP.submitLatency = 300*1000; function takePicture() { navigator.camera.getPicture

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

匿名 (未验证) 提交于 2019-12-03 08:57:35
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 linux support) or iOS (working on xcode via

Using PhoneGap, can't load local .html file using Ajax on Android only

匿名 (未验证) 提交于 2019-12-03 08:57:35
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm using PhoneGap (latest), Jquery 1.7. I'm having troubles getting some html loaded via AJAX into a div. My problem is simple, I have an index.html file in the www/ directory. And a js file that does this: $ . ajax ({ type : "GET" , timeout : 10000 , dataType : "html" , async : false , cache : false , url : "file:///android_asset/www/_liqui-cult.html" , success : function ( data ) { $ ( '#data_details .description' ). html ( data ); // never runs }, error : function ( xhr , msg ){ alert ( xhr . status + ", " + msg ); if ( xhr .

Phonegap CDVViewController.h not found when archiving for distribution

匿名 (未验证) 提交于 2019-12-03 08:52:47
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am experiencing this issue in version 2.2 of Cordova/Phonegap in Xcode 4.5.2 . This is a new project - so right off the bat without anything in the www folder modified. When I build in Debug mode everything goes fine. When I try to build for archiving in distribution mode (AdHoc or App store) I get this error: 'Cordova/CDVViewController.h' file not found Is there any further information that I can post to help clarify the situation? I have tried starting from scratch several times (as per the suggestion of some similar questions

Show loading indicator in Phonegap InAppBrowser

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to display a loading indicator in Phonegap InAppBrowser when a page is loading using the following code: var ref; ref = window.open('http://www.google.com', '_top', 'location=no'); ref.addEventListener('loadstart', function(event) { //navigator.splashscreen.show(); navigator.notification.activityStart("", "loading"); }); ref.addEventListener('loadstop', function(event) { //navigator.splashscreen.hide(); navigator.notification.activityStop(); }); It doesn't display the indicator. I think that the z-index is lower then z-index of

Issue with PhoneGap Network Information Plugin on iOS

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm working on a PhoneGap app, and have an issue with installing one particular module, "Network Information" ( https://github.com/apache/cordova-plugin-network-information ). phonegap -v shows I'm running version 5.3.7 All other plugins seem to be working fine. This is an issue in the application I'm working on but I've also managed to reproduce it in a new application: The only two files I've changed are index.html and js/index.js in this example, and there is no js/cordova.js file, which is automatically included ( Cordova Network and

Phonegap Android: Unknown chromium error: -6

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm creating a Phonegap Android app and I'm having trouble when adding a plugin to it. Cordova version is 2.2.0. I'm not using jQM or Sencha Touch. I test the app on Android 4.0. The plugin I refer to is Android Phonegap plugin . This is my index.html file: <!DOCTYPE html> <html> <head> ... </head> <body> <div class="wrapper"> ... </div> <script type="text/javascript" src="vendor/cordova-2.2.0.js"></script> <script type="text/javascript" src="assets/application.js"></script> <script type="text/javascript" src="js/index.js"></script> <script

Calling Default Phonegap Back Button Handler

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a phonegap app that requires I capture the back button. This works swimmingly but when I am at the main screen and the back button is pressed I want to call the original event handler and let the app close or do whatever comes naturally to the platform with such a press. I know I can tell the app to quit but understand this is bad form for iPhone apps. No matter what I try (and I have tried many things) I cannot get the original handler to fire. Any advice? In my code I have a switch statement inside my backbutton event handler that

Export sqlite db in phonegap app

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We have an app using cordova (phonegap) and his own sqlite DB (I mean we didn't install an external sqlite). We need to backup the DB into the SD memory but we have problems to export the sqlite file from phonegap to SD. May anybody help us? 回答1: This sounds good with Cordova 3.5 and org.apache.cordova.file 1.2.1 Some variations needed for differents path. window.resolveLocalFileSystemURL("file:///data/data/my-app-name/databases/name-of.db", function(fs) { var parent = "file://mnt/external_sd/"; var newName = "mybackup.db"; window

Phonegap Desktop App external plugins

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Has anyone had luck adding external plugins to the Phonegap Desktop App? I have had success adding core plugins like "Device" but not external ones. I am trying to add com.admob.google to my project and I can not get admob to be recognized as a command. In the config.xml I add: <gap:plugin name="com.admob.google" source="plugins.cordova.io" /> And in my deviceReady function in my .js file I have: try{ admob.requestInterstitialAd(); //or any other admob command } catch(err){ alert("admob not loaded"); } Every time on my device (via Phonegap