android,cordova,cross-platform,phonegap-plugins
I just got it done.. added the following to Path %JAVA_HOME%\bin\ added this as a system variable ANDROID_HOME=E:\Android\sdk installed SDK Tools for API V19 using SDK Manager after I got this error. After that the command ran smoothly ...
cordova,phonegap-plugins,phonegap-build
@Sabarish, The standard camera API does NOT allow this. There is a suggestion that multiple images can be capture with the Capture API. However, it says: Starts an asynchronous operation to capture images using the device's camera application. The operation allows users to capture more than one image in a...
cordova,phonegap-plugins,cordova-plugins,ionic
Not a bad idea to do it in the hooks. Here is an example along that idea: http://jbavari.github.io/blog/2014/06/24/managing-cordova-plugins-with-package-dot-json-and-hooks/
ios,xcode,cordova,64bit,phonegap-plugins
1) Do I need to use the archs_standard and arm64 changes mentioned in the 1st paragraph? Yes, you have to use $(ARCHS_STANDARD) and arm64 if you want to submit the app to the stores. 2) How do I fix these issues so I can submit my app? Is it...
ios,iphone,ios8,phonegap-plugins,cordova-plugins
I always use a "homemade" plugin made by me; it get the PDF on a specific URL by a single GET. PDFUtilities.m #import "PDFUtilities.h" @interface PDFUtilities() @property (strong, nonatomic) UIDocumentInteractionController *documentInteractionController; @end @implementation PDFUtilities - (void)viewPdf:(CDVInvokedUrlCommand*)command { if (command.arguments[0] == (id)[NSNull null]) { [self.commandDelegate sendPluginResult:[CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR] callbackId:command.callbackId]; return; } NSString...
cordova,phonegap-plugins,ionic,ngcordova
I think that there is an issue into that point. I have implemented yesturday the sharewith instagram and could not make it work with ngCordova function. However, I made it work by using directly cordova plugin call : Instagram.share(canvasId, shareMsg, function(err) { Therefore, remove the ngCordova provider and replace your...
jquery,cordova,phonegap-plugins,video-capture
@DavidC was real close, you just need to know what property of the MediaResult ob to use, fullPath. Here is a full example. document.addEventListener("deviceready", init, false); function init() { document.querySelector("#takeVideo").addEventListener("touchend", function() { console.log("Take video"); navigator.device.capture.captureVideo(captureSuccess, captureError, {limit: 1}); }, false); } function captureError(e) { console.log("capture error: "+JSON.stringify(e)); } function captureSuccess(s)...
cordova,push-notification,sms,phonegap-plugins
Sending a SMS is generally just a simple HTTP request to a third party able to send a SMS. So any client or server can do it. The SMS will just be sent as any normal SMS. Sending a push notification is generally done from a server since it's also...
android,cordova,phonegap-plugins,alarmmanager,android-alarms
Katzer has rewritten all the plugin in a new version, recently I have been testing it and it seems that it runs well.
first import javascriptinterface package in mainActivity class import android.webkit.JavascriptInterface; After that add JavaScript interface in onCreate method in the MainActivity Class super.appView.addJavascriptInterface(new JSInterface(), "sampleproj"); Then define the javascript Interface public class JSInterface{ @JavascriptInterface public void gotoSilent(){ AudioManager audMangr; audMangr= (AudioManager) getBaseContext().getSystemService(Context.AUDIO_SERVICE); audMangr.setRingerMode(AudioManager.RINGER_MODE_SILENT); } } Add a...
html,cordova,phonegap-plugins,phonegap-build,sapui5
To change application direction, sapui5 provides script tag attributes for configuration. Just include sap-ui-rtl="false" and sap-ui-language="ar" attributes in your script something like, <script src="resources/sap-ui-core-all.js" data-sap-ui-rtl="false" data-sap-ui-language="ar"></script> ...
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://'...
ios,cordova,phonegap-plugins,config,iconv
I got this issue previously . My xml changes not reflected to the new build . The easy solution is the go to the resource folder of from where the default phone gap actually takes the icons . And then replace those with your icons . for the best result...
java,android,sqlite,cordova,phonegap-plugins
1) it depends from your application, please read some book on android and will able to put the code where you need. You can use also GreenDAO for a more simple access to sqlite 3) you can sign 2 different app with the same certificate, in this way the two...
ios,cordova,uiimage,phonegap-plugins
Try this: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *filepath = [documentsDirectory stringByAppendingPathComponent: @"tempImg.jpg"]; UIImage myImage = [UIImage imageWithContentsOfFile: filepath]; ...
cordova,phonegap-plugins,ionic-framework,cordova-plugins,ionic
Try to use cordova way doing this var exampleApp = angular.module('example', ['ionic']) .run(function($ionicPlatform) { $ionicPlatform.ready(function() { document.addEventListener("resume", function() { console.log("The application is resuming from the background"); }, false); }); });...
javascript,cordova,phonegap-plugins,barcode,pdf417
There is a pure Javascript plugin (pdf41-js ) that does what you want. It could be integrated into phonegap: their description says PhoneGap/Apache Cordova enables you to write a mobile app using HTML, JavaScript and CSS. so pure JS can be integrated....
ios,cordova,phonegap-plugins,intel-xdk
Cordova (aka PhoneGap) applications are ordinarily implemented as a browser-based WebView within the native mobile platform 1) No need to change your code for each platform . 2) You will have to build your app for each platform like for iOS app in xcode, for android in eclipse or android...
cordova,geolocation,phonegap-plugins,ionic,cordova-plugins
The success callback passed into watchPosition() is called each time the operating system receives a location update, which is not after a specific interval of time. For instance, if using high accuracy, it will be called each time the GPS hardware passes a position update to the OS. Therefore this...
android,cordova,phonegap-plugins,phonegap-build
Change your code from: { for (var j=0; j<contacts[i].phoneNumbers.length; j++) { $('#contact_list').append('<li> Name:'+contacts[i].displayName+'</li>'); $('#contact_list').append('<li> Number:'+contacts[i].phoneNumbers[j].value+'</li><br><br>'); } $('#contact_list').listview('refresh'); } To: { var finalList = ''; listEntryPoint = $('#contact_list'); for (var j=0; j<contacts[i].phoneNumbers.length; j++) { finalList += '<li> Name:'+contacts[i].displayName+'</li>' + '<li>...
java,javascript,cordova,phonegap-plugins,cordova-plugins
when you call the plugin you have to pass the success and failure functions: var myplugin = cordova.require('myplugin'); var myapp = { appButton1: function(){ myplugin.switch1(function(data){alert(data);},function(error){alert(error);}); }, appButton2: function(){ myplugin.switch2(function(data){alert(data);},function(error){alert(error);}); } }; ...
javascript,jquery,mobile,phonegap-plugins
I'm not sure whether you can use jQuery Mobile to do this. But I found this CordovaClipboard plugin that allows you to access the clipboard and gives you the ability to paste and copy text.
cordova,callback,phonegap-plugins,nfc
Based on Michael Roland's answer, I got a better understanding of how it works so I constructed a function to manage my NdefListener callbacks. var currentListenerCallback; //global, this one is. function replaceCurrentNdefListener(newCallback) { nfc.removeNdefListener( currentListenerCallback, function() { console.log('successfully removed listener callback: writeTag()'); currentListenerCallback = newCallback; //make the new callback the...
android,cordova,phonegap-plugins,phonegap-build
I fixed this by changing the access token in the config.xml: From <access origin="http://www.example.com*" /> ...to... <access origin="*"/> ...
ios,cordova,ionic-framework,phonegap-plugins,ionic
All you need is Custom-URL-scheme cordova plugin. You can do it manually also. For iOS add to your *.plist. Or You can look at Step 5 <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLSchemes</key> <array> <string>URL_SCHEME</string> </array> </dict> </array> In iOS after adding custom scheme it automatically calls a function called handleOpenURL. For android...
android,html5,cordova,audio,phonegap-plugins
I finally managed to get it working!! I first initialising the audio file by finding the full Android path using @Sarim Sidd help above and then preloading the audio file: //INITIALISE SOUND if(device.platform === "Android") //DIFFERENT PATH FOR ANDROID { //navigator.notification.beep(1); var path = window.location.pathname; path = path.substr( path, path.length...
cordova,html5-canvas,admob,phonegap-plugins,phaser-framework
Here is a working demo for Phaser and AdMob: https://github.com/floatinghotpot/admob-demo-game-phaser/tree/master/demo You can copy the js/admob.js to your project, and simply reference to it in your index.html...
android,cordova,phonegap-plugins,phonegap-build,cordova-plugins
The plugin.xml looks to be missing. The path to each added plugin's plugin.xml should be: <yourapp>/plugins/<some-plugin>/plugin.xml If you cannot find the plugin.xml files in those folders, you will have to manually download it from its git resource. Try adding device-rotation-vector's xml from here and then run: cordova plugin remove cordova-plugin-device-rotation-vector...
ios,facebook,cordova,phonegap-plugins,cordova-plugins
This issue has been solved as of today, when Facebook updated their app. To resolve the problem, user needs to update the Facebook app. Further details are available at this Facebook bug report: https://developers.facebook.com/bugs/962985360399542/...
cordova,http,cookies,xmlhttprequest,phonegap-plugins
I confirm that cookies are not manageable from JavaScript's XMLHttpRequest object in PhoneGap/Cordova on Android, regardless of the framework used (so not an angular issue). It seems to be a feature, not a bug, with no plans to expose the cookies down to the JavaScript side (the cookies are managed...
javascript,cordova,phonegap-plugins,intel-xdk
I tried that plugin (https://github.com/hazems/cordova-sms-plugin) and it worked for me. I can't endorse it, but I was able to send a text message without going into the SMS app, though it does show the message in my history of messages in the SMS app. I just included the plugin as...
cordova,phonegap-plugins,monaca
I received an official response from Monaca that this plugin is not supported. At first they gave a canned answer (generic instructions on importing a custom plugin). I then asked for them to try to import the plugin and make it work on their own, and they couldn't. Sigh.
ios,osx,cordova,phonegap-plugins,command-line-interface
Add sudo sudo npm install -g phonegap ...
android,cordova,cloud,phonegap-plugins,phonegap-build
When you upload to Phonegap build services your config.xml file should be in www/config.xml. Also the name space for your config should be xmlns:gap="http://phonegap.com/ns/1.0." Look here for further info: http://docs.build.phonegap.com/en_US/configuring_basics.md.html#The%20Basics
android,phonegap-plugins,phonegap-pushplugin
You will always get a new pushID on Android as that is how GCM works. It essentially is a new instance of the application. Because it's a new instance, your new instance will have a new ID. Furthermore, Urban Airship's phonegap is built on top of their native library, which...
ios,xcode,cordova,phonegap-plugins,zxing
with these three solution you can achieve your goal, the third option is the most efficient but the worst in code maintainability, the first, if applicable, is the best: From the original repository of the iOS versions of this plugin you can find this guide to costumize your overlay view....
android,cordova,phonegap-plugins,crosswalk-runtime
If you are using the crosswalk version of cordova there is no change needs to be done in your cordova project. All you have to do is import https://github.com/crosswalk-project/crosswalk-cordova-android into eclipse(ADT). Instead of cordova dependancy in project add crosswalk cordova project. Your original cordova project now should be using crosswalk...
android,cordova,phonegap-plugins,cordova-plugins
Yes here we go! You have to utilize cordova file-transfer plugin, like so: window.requestFileSystem(LocalFileSystem.TEMPORARY, 0, function(fs){ fs.root.getFile("'"+audioData[0].name+"'", {create: true, exclusive: false}, function(entry){ var fileTransfer = new FileTransfer(); fileTransfer.download( "file:///storage/emulated/0/Sounds/" + audioData[0].name, // the filesystem uri you mentioned "cdvfile://localhost/temporary/" + audioData[0].name, function(entry) { // do what you want with the entry...
Despite the fact that this was supposed to work (https://github.com/wf9a5m75/phonegap-googlemaps-plugin/issues/411#issuecomment-75452290) after a couple of days in a nutshell i figured that i had to override the instructions for ios property list for the plist key "Google Maps API Key". So, in config.xml i inserted the code: <gap:config-file platform="ios" parent="Google Maps...
javascript,android,html5,cordova,phonegap-plugins
Add this to your index.html : document.addEventListener("offline", function(){ navigator.notification.alert("No connection found") }, false); It will alert you if there isn't a network connection. If you don't have the notification plugin : document.addEventListener("offline", function(){ alert("No connection found") }, false); ...
android,cordova,phonegap-plugins,nfc
This plugin only supports NDEF. Android supports NfcB and IsoDep so it's possible to extend this plugin to do what i need. Thanks to Don......
android,ios,cordova,phonegap-plugins
They have just launched digits for web, take a look https://dev.twitter.com/twitter-kit/web/digits If you still want to use the native SDKs, as I told you on a comment it's impossible to create a generic cordova plugin to just install it via the cordova CLI, at least for iOS you will have...
android,cordova,phonegap-plugins,phonegap-pushplugin
register When you call pushNotification.register(): successHandler is called if there is no error in parsing your ecb and senderID. Your senderID and application are registered with GCMRegistrar. errorHandler is called only if there is a JSON error while parsing the ecb or senderID Once your setup is correct, your...
android,cordova,phonegap-plugins,phonegap-build
@Marty.H, I have working demos here: http://codesnippets.altervista.org/examples/phonegap/demos/PUBLIC.Apps.html Go to the lower half of the page and try pre-built app, Phonegap-Compass-Test. If it works, the top half of the page has the links to github where you can get the source code. --Jesse
phonegap-plugins,phonegap-build
I added the following scripts to my index.html file in the head before any other script and it worked. NOTE: These scripts are not part of my project structure, and are loaded dynamically through PhoneGap Build. I just needed to reference them. <script src="cordova.js"></script> <script src="inappbrowser.js"></script> ...
Apps moving to the background are expected to put themselves into a quiescent state as quickly as possible so that they can be suspended by the system. If your app is in the middle of a task and needs a little extra time to complete that task, it can call...
mysql,cordova,phonegap-plugins,config,cpanel
I used JSON and just added a line to the php to force JSON passing the values $.getJSON('http://...', function(data){ /* data will hold the php array as a javascript object */ $.each(data, function(key, val){ var x = document.getElementById("Cheltenham"); var option = document.createElement("option"); option.text = val.BUSTYPE; option.value = val.REFERENCE; x.add(option); });...
javascript,jquery,sqlite,cordova,phonegap-plugins
It seems that sometimes deviceready-event is either not fired at all or fired too early when there are more event handlers of different libraries in place. The second problem caused that the brodysoft-plugin is not loaded properly and assign to the window-object as window.sqlitePlugin property because one event handler dispatched...
android,cordova,phonegap-plugins,phonegap-build
First of all, you have to decide whether you want to stick to Phonegap or Cordova CLI. Don't mix them both, this will only get you into trouble. If you need support for the proprietary Phonegap-Build-Service provided by Adobe, you will need Phonegap, otherwise you can use Cordova. If you...
html,css,cordova,phonegap-plugins,android-ui
The issue was with scaling on Android OS 4.4 Webkit. I found the resolution by adjusting the Initial scaling of App by Display display = ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay(); int width = display.getWidth(); int height = display.getHeight(); // calculate target scale (only dealing with portrait orientation) double globalScale = Math.ceil( ( width...
android,cordova,phonegap-plugins
Please try this is in your code //Please place your db file in wwww directory ,here example : projectpath/www/santosh.db db = window.sqlitePlugin.openDatabase({name: "santosh.db", createFromLocation: 1}); and for more reference follow the steps on following link... http://santoshshinde2012.blogspot.in/2015/03/open-existing-sqlite-file-in-phonegap.html Hopes it may help you....
android,cordova,jquery-mobile,phonegap-plugins,phonegap-build
I tried canvas to blob api and base 64 string to blob code. but not ok for me. So that i maked some of the trick. I don't convert camera uri to blob in javascript. That process make in android native. Android native can easy to convert camera uri to...
android,cordova,phonegap-plugins
You might need to downgrade your Cordova version.
java,javascript,android,cordova,phonegap-plugins
Preferences are used and organised within the application context. This means that preferences of one application don't belong to other applications. There are some options that I suggest. First Option If one application defines a preference with MODE_WORLD_WRITEABLE mode, other application will be able to reach that preference if and...
android,cordova,phonegap-plugins
in your MainActivity create static Method public static boolean isBLESupported(Context c) { System.out.println("Activity"); return c.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE); } and in your Cordovaplugin change your method // Returns true if BLE is supported. private void isBLESupported(CallbackContext callbackContext) { boolean isSupported = MainActivity.isBLESupported(this.cordova.getActivity().getApplicationContext()); Log.w(TAG, "isSupported: " + isSupported); JSONObject params = new JSONObject(); try...
ios,cordova,gps,geolocation,phonegap-plugins
I found the bug. It was associated with ios8. In ios 8, you have to update the plugin. I have used 0.3.10. After the update to 0.3.13 it works. :)...
android,cordova,phonegap-plugins,in-app-billing
Weired, I found there is a java.lang.NullPointerException in line 266 in IabHelper.java. I commented Line 266 as below and every things has become right, can anyone describe this. Intent serviceIntent = new Intent("ir.cafebazaar.pardakht.InAppBillingService.BIND"); // serviceIntent.setPackage("ir.cafebazaar.pardakht"); ...
javascript,ios,cordova,safari,phonegap-plugins
The plugin wasn't loaded correctly. Reinstalled plugin and it works :)
cordova,phonegap-plugins,ionic,phonegap-build,ionic-view
Just read a little comment that you've to install the application again completely (if you have Hydration enabled) when you add a new plugin. Now everything is working fine. Fixed!...
cordova,worklight,phonegap-plugins
See here for tutorials about how to create Cordova plug-ins for Worklight/MobileFirst Platform: Adding native functionality to hybrid applications Then read various topics about the same subject: http://sajjad-hussainsh.blogspot.co.il/2013/05/ibm-worklight-phonegap-barcodescanner.html Worklight 6.1 - Barcode Scanner Plugin IBM Worklight - How to add barcode scanner phonegap plugin into config.xml in Xcode 5? how...
cordova,phonegap-plugins,phonegap-build
var options = new ContactFindOptions(); options.filter = ""; options.multiple = true; The Contacts Plugin is poorly documented. My notes are here: http://codesnippets.altervista.org/documentation/phonegap/plugins/navigator.contacts.docs.html Working App Here: http://codesnippets.altervista.org/examples/phonegap/demos/PUBLIC.Apps.html...
android,cordova,phonegap-plugins
OK, i finally found a solution : downgrade nodejs to 0.10.29 version and it's running now !...
javascript,ios,objective-c,cordova,phonegap-plugins
Adding core telephony framework and its delegate methods solved my requirement. //Initialize the plugin - (void)pluginInitialize { self.callCenter = [[CTCallCenter alloc] init]; [self handleCall]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(callReceived:) name:CTCallStateIncoming object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(callEnded:) name:CTCallStateDisconnected object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self...
I'm using this plugin and it works fine for me (very well documented): https://github.com/appfeel/admob-google-cordova cordova plugin add com.admob.google Make sure to start ads once your device is ready to show: function onDeviceReady() { document.removeEventListener('deviceready', onDeviceReady, false); // Set AdMobAds options: admob.setOptions({ publisherId: "ca-app-pub-XXXXXXXXXXXXXXXX/BBBBBBBBBB", // Required interstitialAdId: "ca-app-pub-XXXXXXXXXXXXXXXX/IIIIIIIIII", // Optional tappxIdiOs:...
cordova,phonegap-plugins,phonegap-build
Configure your .bash_profile file... nano ~/.bash_profile Adding is line: export JAVA_HOME=$(/usr/libexec/java_home) export PATH=${JAVA_HOME}/bin:$PATH export PATH=/usr/local/bin:$PATH ...
cordova,ionic-framework,phonegap-plugins,cordova-plugins
Error states that google is undefined. My best educated guess would be that the script from the index.html is not loaded correctly: <script src="http://maps.googleapis.com/maps/api/js?key=AIzaSyD4bzp0Ck8nTXgfs9ZYo8vXZ2tgWhqzWmY&sensor=true"> I think this is because of the new Cordova 5.0 release being used. You need to install the cordova-plugin-whitelist as following: cordova plugin add cordova-plugin-whitelist Also...
cordova,phonegap-plugins,ionic-framework,cordova-plugins,intel-xdk
Please review this doc page > https://software.intel.com/en-us/html5/xdkdocs#517452 In essence, a Cordova plugin is a third-party JavaScript API that you add to your app. It uses the Cordova bridge mechanism to communicate with native code that supports that 3rd-party API. Adding the plugin to your project provides access to that JavaScript...
angularjs,cordova,phonegap-plugins,ionic-framework,ionic
I have solved my problem using add plugin in my application cordova plugin add https://github.com/apache/cordova-plugin-whitelist.git ...
ios,thread-safety,phonegap-plugins,cordova-plugins,background-thread
As per this. solved my warning issue I found warning can be ignored .But this can be solved by adding background thread using this loop:(In CDVLogger.m) [self.commandDelegate runInBackground:^{ //add your code here } Now this looks as below for console warning: - (void)logLevel:(CDVInvokedUrlCommand*)command { [self.commandDelegate runInBackground:^{ id level = [command...
You need to add the following to your php file header('Access-Control-Allow-Origin: *'); ...
android,node.js,cordova,phonegap-plugins
don't worry about the warning, nodejs 0.12 were just release last mounth, Cordova team havn't yet update dependencies. Another thing the most up to date Cordova build is 4.1.2, try : npm install -g [email protected] to force npm installing the newer version. Cordova 4 works with both 0.10 and 0.12...
ios,cordova,swift,phonegap-plugins
I'm not sure why but you can only get a valid command delegate when you build with Cordova. If you do a build from Cordova the command delegate is valid, otherwise (if you installed Cordova as a 'plugin' to an existing app) it will be nil.
cordova,phonegap-plugins,ibm,mobilefirst
It is not trivial because MobileFirst 6.x-7.0 does not support installation of existing Cordova plug-ins. I have implemented an example in the answer for the following question: How we can implement add to any(Social networking) in MobileFirst...
cordova,phonegap-plugins,contacts,android-contacts,cordova-plugins
This is your answer....Sir. var photos = []; var ImgUrl="images/Thomas.jpg"; photos[0] = new ContactField('url', ImgUrl,true); contact.photos = photos; ...
Find the "- (void)viewWillAppear:(BOOL)animated" method from MainViewController.m file and replace the method with following code. - (void)viewWillAppear:(BOOL)animated { // View defaults to full size. If you want to customize the view's size, or its subviews (e.g. webView), // you can do so here. //Lower screen 20px on iOS 7 and...
ios,objective-c,cordova,phonegap-plugins
This solved me issue. It is working fine now after following below steps https://discussions.apple.com/thread/6742087?start=0&tstart=0 To troubleshoot this issue where your iPhone is unresponsive, please follow the steps outlined below: 1. If a single application is not responding or stops responding when it opens, you can force it to close. 2....
angularjs,cordova,phonegap-plugins,ionic-framework,video-capture
At the moment, this doesn't seem to be supported by the cordova capture plugin. I did find this // <!--- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF...
if you switch to local development, you can install the plugin like this: cordova plugin add /path/to/the/plugin/folder ...
javascript,android,jquery,cordova,phonegap-plugins
I don't think you need the quotes: <a href="#" onclick="window.plugins.socialsharing.share( null, null, document.getElementById('setquote').innerHTML, <- remove quotes here null )"> When you wrap that line in quotes, you're just passing a string, I think you want to pass the actual inner html...
javascript,cordova,html5-video,phonegap-plugins,mediaelement.js
Is mediaelement.js compatible with phonegap? Yes, they are compatible. I have seen them used together on projects. PhoneGap can be difficult to configure properly to work with other JS libraries b/c of the extent to which PhoneGap binds its own events to manage the environment. Without knowing more about...
android,cordova,service,phonegap-plugins
I fear that it is not possible to create a background service in cordova/phonegap but you can implement you supporting (Native)app with BroadcastReceiver or IntentService which(Runs in backgroun without UI) gets triggered by the (explicit)intent which you call from the cordova plugin. More on < Service (Deep Guide), IntentServices, BroadcastReceiver...
cordova,visual-studio-2013,geolocation,phonegap-plugins,cordova-plugins
You can't test geolocation mode inside android emulator, same goes to push notification. You need to test in in real mobile device.
cordova,phonegap-plugins,whitelist
After adding the cordova-plugin-whitelist, you must tell your application to allow access all the web-page links or specific links, if you want to keep it specific. You can simply add this to your config.xml, which can be found in your application's root directory: Reccomended in the documentation: <allow-navigation href="http://example.com/*" />...
javascript,jquery,cordova,phonegap-plugins
remove the brackets from 'initApp()' in document.addEventListener("deviceready", initApp, false); EDIT ** The above is just for semantics I think you need to change !SMS to typeof SMS === 'undefined' ...
cordova,phonegap-plugins,cordova-plugins,rating
you can check these link out... https://github.com/pushandplay/cordova-plugin-apprate (this one is easy to set up) http://www.joshuawinn.com/adding-rate-button-to-cordova-based-mobile-app-android-ios-etc/ (haven't used this but heard good reviews abt it) Hope it helps.!...
javascript,ios,cordova,phonegap-plugins
Looking at the source code for the iOS plugin, it turns out that the quality setting is either honored or ignored depending on what other options you supply. It boils down to this: if ((options.allowsEditing == NO) && (options.targetSize.width <= 0) && (options.targetSize.height <= 0) && (options.correctOrientation == NO)){ //...
android,cordova,cross-platform,phonegap-plugins,cordova-3
My guess is that sudo is hosing you up here. Running sudo cordova -v should spit out that version you installed. I try to avoid using sudo to install npm modules. This answer here has a lot of solid solutions in it: NPM throws error without sudo There are some...
ios,objective-c,cordova,phonegap-plugins,cordova-plugins
This solved my issue to callback javascript from objective c class: - (void) sayHelloCustom:(CDVInvokedUrlCommand*)command { NSString *methodname; NSString * requestIdStr; NSDictionary* options = [[NSDictionary alloc]init]; if ([command.arguments count] > 0) { options = [command argumentAtIndex:0]; requestIdStr = [options objectForKey:@"requestId"]; methodname =[options objectForKey:@"callback"]; } dispatch_async(dispatch_get_main_queue(), ^{ CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK...
android,xml,eclipse,cordova,phonegap-plugins
I've encountered the same question as yours. I supposed it's because must be bound to phonegap prefix. So I solved this question by adding xmlns:gap="http://phonegap.com/ns/1.0" at node. In your case, the full should be: <widget id="com.myappname.Myappname" version="2.2.3" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:gap="http://phonegap.com/ns/1.0"> Hope it works for you....
android,google-maps,cordova,phonegap-plugins,cordova-plugins
How silly of me: the CordovaPlugin class forwards the methods: public void onPause(boolean multitasking) public void onResume(boolean multitasking) public void onDestroy() among the others, which answers my question. All you need to do is implement them in the plugin and at least part of the lifecycle can be handled in...
java,android,cordova,phonegap-plugins
I figured it out. When erroneous code is added to the main activity java file, cordova actually tries to compile it, obviously fails and silently exits. To phonegap, which runs over Cordova in the NPM module, the build process is successful. To actually see the error output of the Java...
android,cordova,phonegap-plugins,phonegap-build
You download the apk (there are online tools to do that) You unzip the apk (an apk is just a zip with a specific content) In the extracted folder search for the assets\www\ folder. If it's a cordova or phonegap app, you should see a file cordova.js in that...
After a little playing around I guess that the callback "event" is actually already a JSON object: console.log(e.event); console.log(e.payload.aps.alert); console.log(e.payload.aps.sound); console.log(e.foreground); prints out message, My first push notification!, default and true in the log....