phonegap-plugins

Error - Some official plugins have to be updated if using PhoneGap >= 4.0.0. Plea

廉价感情. 提交于 2019-12-02 05:34:51
问题 I Got Error When Compile my Phonegapp App Error - Some official plugins have to be updated if using PhoneGap >= 4.0.0. Please upgrade the version of any plugins that may include the following file: GoogleMaps.java - You can fix this here Compile Log: https://snipplr.com/view/329573/compile-log/ and config.xml Given Below. please help why can i do? <?xml version="1.0" encoding="utf-8" ?> <widget xmlns = "http://www.w3.org/ns/widgets" xmlns:gap = "http://phonegap.com/ns/1.0" xmlns:android =

How to install “cordova-plugin-whitelist” from command line

雨燕双飞 提交于 2019-12-02 05:34:43
问题 I am following Phonegap official tutorial. I have downloaded Phonegap android base project and now I am trying to add plugins to "Hello World" app but it's throwing below error Command line error: D:\cordova-android-master\bin\HybridAndroidApp>plugman install --platform android --project . -- plugin cordova-plugin-device Installing "cordova-plugin-device" for android ANDROID_HOME=C:\Users\admin\AppData\Local\Android\sdk JAVA_HOME=C:\Program Files\Java\jdk1.8.0_101\ Failed to install 'cordova

PhoneGap retrieve contacts

柔情痞子 提交于 2019-12-02 05:25:25
I'm facing a serious issue while fetching contacts from the contacts list using PhoneGap. I have installed the plugin and did everything but seems it doesn't work for me. So, What is the problem ? The problem with it is my contacts having the email accounts.So email doesn't have the phonenumber. Here is the screenshot : http://prntscr.com/82meyr What is the issue ? Well, the problem is that when it encounters the email the for loop stops immediately and shows the 20-30 contacts only! function onSuccess(contacts) { alert("Total contacts = "+ contacts.length); for (var i=0; i<contacts.length; i+

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

喜夏-厌秋 提交于 2019-12-02 04:46:52
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 following: @interface FlurryAPI : NSObject { } + (void)startSession:(NSString *)apiKey; + (void)logEvent:

File download to Android download folder in Cordova

五迷三道 提交于 2019-12-02 03:36:22
问题 Here is the code. function downloadCL(){ document.addEventListener("deviceready", init, false); //The directory to store data var store; var assetURL= encodeURI(website address to download the file); var fileName = assetURL.substr(assetURL.lastIndexOf('/') + 1); //Get filename of URL // init(); function init() { alert("Checking for data file."); // store = cordova.file.externalDataDirectory; store = "cdvfile://localhost/persistent/Download/"; //Check for the file. window

Cordova build android error Execution failed for task ':processDebugResources'

青春壹個敷衍的年華 提交于 2019-12-02 03:19:13
I am developing an hybrid mobile app for android and ios with cordova, angularjs and angularmaterial design. I use npm, bower and grund to manage and run build task. I could build ios but not android with error: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':processDebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/xxx/android-sdk/build-tools/23.0.3/aapt'' finished with non-zero exit value 1 * Try: Run with --stacktrace option to get the stack trace. Run with --info or -

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

跟風遠走 提交于 2019-12-02 03:03:11
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) { switch( e.event ) { case 'registered': if ( e.regid.length > 0 ) { console.log("Regid " + e.regid);

push notification doesn't show up on status bar

≡放荡痞女 提交于 2019-12-02 02:41:49
问题 i'm using phonegap with phonegap-plugin-push , and i tried the example that comes with the plugin , i tested it on my phone ( Galaxy s4 , Android 5.0.1 ) , when i send notification while application is on i got vibration and the message is showing inside the cards div as mentioned in index.js but i got no notification on status bar , if the application is on background i got also no notification on status bar but i got vibration. i wonder why i have no notification popup on status bar. i use

How to install “cordova-plugin-whitelist” from command line

与世无争的帅哥 提交于 2019-12-02 02:21:52
I am following Phonegap official tutorial . I have downloaded Phonegap android base project and now I am trying to add plugins to "Hello World" app but it's throwing below error Command line error: D:\cordova-android-master\bin\HybridAndroidApp>plugman install --platform android --project . -- plugin cordova-plugin-device Installing "cordova-plugin-device" for android ANDROID_HOME=C:\Users\admin\AppData\Local\Android\sdk JAVA_HOME=C:\Program Files\Java\jdk1.8.0_101\ Failed to install 'cordova-plugin-device':CordovaError: Requirements check failed for JDK 1.8 or greater at D:\cordova-android

Error - Some official plugins have to be updated if using PhoneGap >= 4.0.0. Plea

情到浓时终转凉″ 提交于 2019-12-02 02:14:15
I Got Error When Compile my Phonegapp App Error - Some official plugins have to be updated if using PhoneGap >= 4.0.0. Please upgrade the version of any plugins that may include the following file: GoogleMaps.java - You can fix this here Compile Log: https://snipplr.com/view/329573/compile-log/ and config.xml Given Below. please help why can i do? <?xml version="1.0" encoding="utf-8" ?> <widget xmlns = "http://www.w3.org/ns/widgets" xmlns:gap = "http://phonegap.com/ns/1.0" xmlns:android = "http://schemas.android.com/apk/res/android" id = "kmrs.m6obil6e.app" versionCode = "25" version = "2.5">