phonegap-plugins

Cordova jar is missing in phonegap 3.5.0

做~自己de王妃 提交于 2019-12-04 05:45:32
Before I am using phonegap 2.7.0. so for phonegap update, I have installed the phonegap version 3.5.0 using node.js, but in the phonegap folder there is no cordova jar file. If I create a project in ADT how can I add cordova.jar and cordova.js? I am unable to see any jar file in phonegap folder. Even If I create a project from command prompt I did not see any phonegap jar file and js file in my created project. Can any one help me how to create and run my first project using phonegap 3.5.0? I have the same problem... I tryed to create a new project with cordova@3.5.0-0.2.4: cordova -d create

Phonegap Build iOS camera.getPicture() quality parameter not working

强颜欢笑 提交于 2019-12-04 05:32:44
问题 I have written a Phonegap application and compiled it using the Build service. My application calls the camera in this block of code: function capturePhoto() { // Take picture using device camera and retrieve image navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 20, destinationType: destinationType.FILE_URI }); } The resulting image is uploaded to a server via ajax. When I review the uploaded images, some arrive with their quality reduced appropriately but some arrive with

How do I call an Objective-C method from Javascript in UIWebView?

微笑、不失礼 提交于 2019-12-04 05:30:15
问题 I'm developing a native iPhone app using Phonegap, so everything is done in HTML and JS. I am using the Flurry SDK for analytics and want to use the [FlurryAPI logEvent:@"EVENT_NAME"]; method to track events. Is there a way to do this in Javascript? So when tracking a link I would imagine using something like <a onClick="flurryTrackEvent("Click_Rainbows")" href="#Rainbows">Rainbows</a> <a onClick="flurryTrackEvent("Click_Unicorns")" href="#Unicorns">Unicorns</a> "FlurryAPI.h" has the

Remove White Flicker after splashscreen phonegap 3.3

冷暖自知 提交于 2019-12-04 05:11:20
How is it possible to create an app, add the splashscreen plugin, the splashscreen should disappear when the device is ready and no WHITE FLICKER to appear?? This happends on Adobe build and also on cli build on android plaform! These are the simple steps I used over and over again for about a week to figure this thing out: I created an app: phonegap create app I added the plugin: phonegap local plugin add org.apache.cordova.splashscreen I added this to the config.xml file from www folder: <feature name="SplashScreen"> <param name="android-package" value="org.apache.cordova.splashscreen" /> <!

Phonegap: GCM Push Notification registration call returns OK but device is not even connected to the internet

孤者浪人 提交于 2019-12-04 04:53:50
问题 I have followed this tutorial and I have the following code: onDeviceReady I execute: var pushNotification = window.plugins.pushNotification; pushNotification.register(app.successHandler, app.errorHandler,{"senderID":"824841663931","ecb":"app.onNotificationGCM"}); The Handlers: // result contains any message sent from the plugin call successHandler: function(result) { alert('Callback Success! Result = '+result) }, errorHandler:function(error) { alert(error); }, onNotificationGCM: function(e)

How to get Path for local mp3 file from www in Phonegap IOS?

六月ゝ 毕业季﹏ 提交于 2019-12-04 03:25:33
i am using phonegap audio plugin in my phonegap app. I have some audio files stored in www/audio folder. For android i used "file:///android_asset/www/audio" to read local file. For IOS i need help. Thanks varun nayyar Finally got it, reference: link To get path i used this function function getPhoneGapPath() { var path = window.location.pathname; path = path.substr( path, path.length - 10 ); return path; }; USAGE: For IOS : var snd = new Media( getPhoneGapPath() + 'test.mp3' ); For Android : prepend 'file://' var snd = new Media( 'file://' + getPhoneGapPath() + 'test.mp3' ); You will have

Cordova Facebook plugin : missing variables APP_ID, APP_NAME

空扰寡人 提交于 2019-12-04 03:15:46
问题 When I do : cordova plugin add https://github.com/phonegap/phonegap-facebook-plugin.git I get the error : Error: Variable(s) missing: APP_ID, APP_NAME Where do I have to configure these variables ? 回答1: Look at the bottom of the README.md file on that github repository. You'll see it gives you instructions for installing the plugin and including the variables: plugman install --platform [PLATFORM] --project [TARGET-PATH] --plugin [PLUGIN-PATH] --variable APP_ID="[APP_ID]" --variable APP_NAME=

iOS PhoneGap 1.7.0 + Barcode Scanning Plugin issue

跟風遠走 提交于 2019-12-04 03:14:05
Has anyone managed to get the BarcodeScanning plugin for PhoneGap to work on PhoneGap 1.7.0? Barcode Scanning plugin: https://github.com/phonegap/phonegap-plugins/tree/master/iOS/BarcodeScanner The issues is that the plugin is not getting set when its added.. I get the following when I call "alert(window.plugins.barcodeScanner);" "undefined" I am trying to isolate the point where the plugin is failing to get added and will update the question once I know more.. Thanks in advance for anyone who can help... Updated answer below: WTFJesus Excellent, The plugin now works again. One issue is the

Cordova Firebase Plugin Notification - Cannot add task ':processDebugGoogleServices' as a task with that name already exists

时间秒杀一切 提交于 2019-12-04 03:07:19
问题 i'm trying to add Google Firebase Notifications on my Phonegap Cordova app, built with Ionic. I've already installed successfully a Google Plus plugin for login (i think this would be a useful info). I only need this Firebase plugin to complete my job but i've been stopped by this error when i build my app for Android. A problem occurred configuring root project 'android'. Cannot add task ':processDebugGoogleServices' as a task with that name already exists. I follow this tutorial for setup

Cordova Change AndroidManifest using Config.xml file

£可爱£侵袭症+ 提交于 2019-12-03 23:54:41
I am in need to add some tags to the AndroidManifest.xml file which is found under platforms\android\AndroidManifest.xml As I have read the AndroidManifest.xml file gets generated on the fly and it is not advisable to edit it. So is there a plugin that I can use that will modify the AndroidManifest.xml file for me with the values that I give it in the config.xml file? Since the recent release of cordova@6.4.0 you can use the <edit-config> tag in config.xml to do this without requiring a 3rd party plugin. For example: <edit-config file="AndroidManifest.xml" target="/manifest/uses-sdk" mode=