phonegap-plugins

Pushwoosh phonegap plugin, retrieving device ID

随声附和 提交于 2019-12-13 02:16:19
问题 I'm using the pushwoosh phonegap plugin for push notifications. After successful registration I need to store the device ID that the registration used in the "hwid" parameter so that I can target push notifications that I send with this same device ID. This works great on Android since it seems the phonegap device.uuid is the same ID that the pushwoosh plugin is sending to their servers. However, on ios the device.uuid returns a different ID than what is sent to pushwoosh. I can see from the

Objective C send data to phonegap and call javascript function

江枫思渺然 提交于 2019-12-13 02:10:15
问题 I am developing an ios application by using phonegap. Because it needs to implement face recognition, so I also use native language objective-c here. In main story board, I have two view controllers. One is called "FaceRec", it is totally created by using objective-c. The face recognition functionality is implemented here. The other one is phonegap main view controller. They are connected by using Tab Bar Controller. The problem is when user enter FaceRec page from Tab Bar Controller and get

PhoneGap 2.2: how does the new bridge work?

好久不见. 提交于 2019-12-13 02:06:43
问题 Earlier this year I wrote an experimental PhoneGap plugin called WebGLGap. In theory it could enable WebGL support in PhoneGap apps by forwarding all the JS calls to the plugin code. Unfortunately I abandoned it because the bridge between Javascript and the plugin was a huge bottleneck: everything (including vertex data) was stringified in to a giant string, passed to the plugin, then parsed back to JSON to be read by the native plugin code. Obviously this made it pretty useless. However I'm

Cordova/phonegap: FileTransferError.FILE_NOT_FOUND_ERR with file transfer plugin

∥☆過路亽.° 提交于 2019-12-13 01:45:52
问题 In my phonegap app I take a picture with my camera and it works as expected. Then, I'd like to send it to my server. I see that sending the base64 encoded string is a bad practice and I figured the best solution is using the file transfer plugin. So, I added the plugin and I wrote this: function onPhotoURISuccess(imageURI) { try{ var url = "myserver/addPhoto"; alert(url); var options = new FileUploadOptions(); options.chunkedMode = false; options.fileKey = "recFile"; var imagefilename =

PhoneGap Build: SocialSharing Plugin Not Loading

↘锁芯ラ 提交于 2019-12-13 01:29:37
问题 I am trying to use the SocialSharing Plugin with PhoneGap Build. I have put the following into the config.ml file: <gap:plugin name="nl.x-services.plugins.socialsharing" version="4.0.8" /> Here is a sample of my HTML index page: <html> <head> <script type="text/javascript" src="SocialSharing.js"></script> </head> <body> <section id="landmarks" data-role="page"> <button onclick="window.plugins.socialsharing.share('My message')">share!</button> <button onclick="window.plugins.socialsharing

Phonegap Plugins work on CLI?

江枫思渺然 提交于 2019-12-13 00:11:45
问题 Does the Phonegap Plugins work on CLI or only on the phonegap online build? If yes, please tell me how to properly integrate the splashscreen plugin on phonegap 3.3. Thank you! 回答1: From Cordova 3.3 the right call is as follows: cordova plugin add org.apache.cordova.splashscreen Keep in mind to use cordova cli not phonegap, phonegap uses cordova but its focus is on the phonegap build, however it still allows you to do local stuff without the build. 回答2: Yes, plugins work locally, not just in

Using PhoneGap for Android : Not able to create table in the database

时间秒杀一切 提交于 2019-12-12 20:27:51
问题 BackGround : I am new to PhoneGap and trying to create a simple table in the SQLite using HTML5 + PhoneGap on Android. Here is my HTML Code. (Using the reference code from PhoneGap site) <html> <head> <title>Storage Example</title> <script type="text/javascript" charset="utf-8" src="cordova-2.7.0.js"></script> <script type="text/javascript" charset="utf-8"> // Wait for Cordova to load // document.addEventListener("deviceready", onDeviceReady, false); // Cordova is ready function onDeviceReady

Is is possible to use ShareThis in a PhoneGap app?

梦想的初衷 提交于 2019-12-12 20:25:31
问题 I've checked the plugin repository on github, and there does not appear to be a plugin already written for ShareThis. I think this means I would have to install the mobile version of ShareThis written in Objective-C. Is there a way to make that work? 回答1: You are correct in that you would need to write a plugin to interface between the ShareThis iOS API and PhoneGap. Looks like a pretty straight forward API... shouldn't bee too hard. http://wiki.phonegap.com/w/page/36753496/How%20to%20Create

Phonegap Geolocation API always getting error code 3

谁都会走 提交于 2019-12-12 19:08:20
问题 I am using phonegap geolocation API in my phonegap android application.It always shows error code code 3,Timeout error.I am also try to change timeout variable value to increased,enableHighAccuracy to be true.But no change in result.But it will works on browser not runs in application.Give me the solution for this problem. This is my code <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"

cordova plugin barcode scanner doesn't open the scan

情到浓时终转凉″ 提交于 2019-12-12 18:15:22
问题 I have a problem with the barcode scanner plugin (I'm not a genius and I don't know well how to programm a web-app.). I use phonegap and cordova and I've tried to do a web-app that scan a barcode after a click on a link. I've installed the plugin, before with this command line: cordova plugin add cordova-plugin-barcodescanner and I write this js code: function scan(){ cordova.plugins.barcodeScanner.scan( function (result) { alert("We got a barcode\n" + "Result: " + result.text + "\n" +