phonegap-plugins

How to include jar files in phonegap android application?

岁酱吖の 提交于 2019-12-08 10:20:15
问题 I am using a third party jar which has java class files and also .so files in my armeabi folder and i want to use the functions of the jar into my phonegap application which i am running on android platform. I tried with including the jar in plugin.xml with the following command : <source-file src="src/android/xxx.jar" target-dir="libs" framework="true" /> <source-file src="src/android/MyPlugin.java" target-dir="src/com/mypackage" /> this doesn't work. can anybody help and what's the proper

Facebook plugin: init not called with valid version

三世轮回 提交于 2019-12-08 09:48:25
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 at Object. ( http://connect.facebook.net/en_US/sdk.js:37:148 ) at window.FB.require ( http://connect

Android and Phonegap: Intent to launch an other Application

你。 提交于 2019-12-08 09:48:09
问题 I found this code to launch the browser with an intent: Intent intent = new Intent (Intent.ACTION_VIEW, uri); intent.setClassName("com.android.browser", "com.android.browser.BrowserActivity"); intent.setDataAndType(uri, "text/html"); startActivity(intent); It works. But i'm not using Android SDK. I'm using Phonegap to make my application. So i'm looking for a way to launch this intent. I found this plugin: https://github.com/borismus/phonegap-plugins/tree/master/Android/WebIntent/ But it does

Implementing pre-populated sqlite database in phonegap using sqlite plugin

泪湿孤枕 提交于 2019-12-08 08:49:21
问题 I am currently using phonegap in android. I want to use my existing database using sqlite plugin. Since i am a newbie, i have read various numeral blogs and posts about the same but found nothing good. Can anyone please explain how to use sqlite plugin in phonegap android app. It will be beneficial if you can explain in steps as i have not much knowledge using databases. Articles that i have read: http://hansjar.blogspot.in/2013/04/how-to-easily-add-prepopulated-sqlite.html http:/

Error adding or deleting plugins in cordova / phone gap

为君一笑 提交于 2019-12-08 08:48:38
问题 I have cordova 3.3 installed (in 3.2, have the same error) and when i want to add or remove a plugin the system show this error: >>cordova plugin add org.apache.cordova.network-information Fetching plugin from "org.apache.cordova.network-information"... Starting installation of "org.apache.cordova.network-information" for android /usr/local/lib/node_modules/cordova/node_modules/q/q.js:126 throw e; ^ SyntaxError: Unexpected token I check the path and is correct: echo $PATH /usr/local/bin:

Cordova permissions requires android.permission.READ_CONTACTS, or grantUriPermission()

二次信任 提交于 2019-12-08 08:28:35
问题 I'm using Cordova 5.3.1 When i use contactsprovider.PickContact, it returns the following error Caused by: java.lang.SecurityException: Permission Denial: reading com.android.providers.contacts.ContactsProvider2 uri content://com.android.contacts/raw_contacts from pid=7739, uid=10141 requires android.permission.READ_CONTACTS, or grantUriPermission() My androidmanifest.xml is: <?xml version='1.0' encoding='utf-8'?> <manifest android:hardwareAccelerated="true" android:versionCode="100009"

Initialization Android In App Billing using cordova plugin

二次信任 提交于 2019-12-08 08:15:59
问题 In My ionic Cordova Application, I am using In App Purchase Plugin: https://github.com/j3k0/cordova-plugin-purchase Here is the method that I use to initialise store: storekit.init({ debug: true, // Enable IAP messages on the console ready: service.IAP.onReady, purchase: service.IAP.onPurchase, restore: service.IAP.onRestore, error: service.IAP.onError }); This Initialization works fine with iOS and all the products loading fine as well, But Android device does not load In Purchase. I guess,

Sendsms plugin not working on Phonegap

穿精又带淫゛_ 提交于 2019-12-08 08:14:30
问题 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

iOS statusbar overlay phonegap

雨燕双飞 提交于 2019-12-08 07:20:58
问题 I'm developing iOS app with PhoneGap (Cordova) and my problem is that status bar is overlaying my webview/application: I've added preferences in my config.xml file but these are not working: <preference name="StatusBarOverlaysWebView" value="false" /> <preference name="StatusBarBackgroundColor" value="#0ff000" /> <preference name="StatusBarStyle" value="default" /> How can i solve that? 回答1: Installation Command for Status bar Plugin cordova plugin add cordova-plugin-statusbar

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

笑着哭i 提交于 2019-12-08 07:14:54
问题 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: