phonegap-plugins

Cordova/PhoneGap Plugin Development Workflow for Android

五迷三道 提交于 2019-12-09 12:16:54
问题 I am developing a set of Cordova plugins. The initial implementation will be Android only, so for now I am interested in being able to use ADT in Eclipse for plugin development. I've read over the documentation and have been able to get the first plugin completed, but the workflow is a bit of a pain. I couldn't find any docs or tools in Cordova that specifically support plugin development workflow. I wonder if I am making it harder than it needs to be? Here is what I am doing. The plugin is

Phonegap Network Connection - Cannot read property 'type' of undefined

有些话、适合烂在心里 提交于 2019-12-09 09:51:47
问题 I have been searching around all day for the answer to this and the Google-sphere has not provided any answers. I have tried everything I know how to do and worked through the suggested solutions and answers and nothing has worked. In a nutshell I am trying to develop a Phonegap app for Android and Apple Mobile devices and one of the features I need is to detect both the network status and the type of network connection. Below is the code I am using. The Firing device ready alert fires off

PushPlugin not found, or is not a CDVPlugin

三世轮回 提交于 2019-12-09 07:32:27
I am developing an app using Cordova, Angular and Ionic. I have a problem with the phonegap push plugin and I've searched a lot but no solutions found. I use cordova 5.4.1 and phonegap-plugin-push 1.5.3. When I run the app on iPad or emulator from Xcode, logs throws this error: ERROR: Plugin 'PushPlugin' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml. [CDVCommandQueue executePending] [Line 159] FAILED pluginJSON = [ "PushPlugin938856013", "PushPlugin", "register", [{ "ecb":"onNotificationAPN", "alert":"true", "badge":"true", "sound":"true" }] ] I've reinstalled the

Location of SQLite database in eclipse for android using phonegap

让人想犯罪 __ 提交于 2019-12-09 03:43:31
问题 I am using phonegap and developing html pages for android but I dont know how to view the tables and its corresponding database in I am using Eclipse Juno. I Know it is somewhere in DDMS can anyone tell me the path where my tables and database is located in SQLite. 回答1: follow this path DDMS -> data -> again click data -> your package name (com.example.app)-> databases ->there you have your database After finding your db file click this 来源: https://stackoverflow.com/questions/12708705

Cordova 3.4.0 navigator.camera.getPicture does not callback onSuccess or onFail for Android 4.3

谁说胖子不能爱 提交于 2019-12-08 19:37:38
问题 I am using Cordova 3.4 with Camera Plugin (https://github.com/apache/cordova-plugin-camera/blob/master/doc/index.md) When I call navigator.camera.getPicture(onSuccess, onFail, { quality: 75, destinationType: window.Camera.DestinationType.FILE_URI, sourceType: window.Camera.PictureSourceType.CAMERA, //allowEdit: true, //cameraDirection: window.Camera.Direction.FRONT, //encodingType: window.Camera.EncodingType.JPEG, //targetWidth: 100, //targetHeight: 100, //popoverOptions: window

Phonegap Plugin - append lines to app delegate

末鹿安然 提交于 2019-12-08 19:16:48
问题 I'm developing a phonegap plugin. So far so good. Now I would like to append 1 or 2 methods to the AppDelegate.m through the config.xml so it will be populated for the developer automatically. Is it possible? Thanks. 回答1: take a look into the Push Plugin, they use an objective-c category for the appDelegate https://github.com/phonegap-build/PushPlugin If you just want to be notified when the app becomes active you don't need to change anything on the AppDelegate, just put this on your plugin:

Sendsms plugin not working on Phonegap

柔情痞子 提交于 2019-12-08 14:00:43
I'm trying to send a message using The "Sendsms"plugin for phone gap on Android. But when I call the function, I get this error: Uncaught TypeError: Cannot call method 'send' of undefined at file This is the JS code I'm using : function onDeviceReady () { $('#send').bind('click', function () { alert('Phone: ' + $('#friendName').val() + ' Message: ' + $('#MessageContent').val()); window.plugins.sms.send($('#friendName').val(), $('#MessageContent').val(), function () { alert('Message sent successfully'); }, function (e) { alert('Message Failed:' + e); } ); }); } document.addEventListener(

Why does cordova-plugin-nativestorage work on browser but not on phone

£可爱£侵袭症+ 提交于 2019-12-08 13:30:50
I am using the Phonegap CLI to serve my project and my plugin version is: 2.3.1 So, I wrote the following code to execute after the device is ready: NativeStorage.getItem("abcd",function(){ console.log("success");alert("success"); },function(){ console.log("fail");alert("failed :)"); }); This works perfectly when I am testing it on my browser. However, when I open this app on my android phone, the NativeStorage code does not work at all. I used weinre to debug my app: I got the error: ReferenceError: NativeStorage is not defined I also removed the plugin and all the platforms and reinstalled

Upgrade Phonegap for iOS (from 1.4.1 to latest)

对着背影说爱祢 提交于 2019-12-08 13:20:34
问题 I would like to know if anyone has experience in upgrading phonegap. Would like to get some help. I have an iOS Phonegap-based project that uses phonegap 1.4.1. I need to update it to the latest version. The latest version is currently 2.2.0 The steps that described in the phone gap document only tells us how to upgrade from one version to the other, but it doesn't help me in upgrade phone gap from a very old version to the latest one. http://docs.phonegap.com/en/2.2.0/guide_upgrading_ios

iOS phonegap-plugin-facebook-connect vs Facebook iOS Application

为君一笑 提交于 2019-12-08 13:17:04
问题 I've been trying to make phonegap-plugin-facebook-connect cordova plugin Simple example work, and i've experienced a weired problem. First I had the Facebook iOS application on my iphone: On my test application based on the Simple example, when i click the Login button, it just switches to the Facebook iOS app, and switches back to my application. Clicking the "Me" button gives me an error "an active access token must be used to query information about the current user" which means the login