FAQ Database Discussion Community


Cordova BarcodeScanner continuous reading

javascript,android,cordova,meteor,qr-code
I'm using MeteorJs and Cordova with the Barcodescanner plugin. I need to do multiple reads of different qrcodes, and send every read to a remote server. With this code I can make one read and then Cordova closes the camera (for make a new one I need to recall the...

Phonegap: Command failed with exit code 8

android,cordova,gradle
I'm setting up an environment for Phonegap developing, and I'm getting some trouble to finally build and run an app for Android. When I try to execute build for Android, I got the following error: Running: C:\Users\Renan\workspace_html5\FIAP\Phonegap\phonegap-test\test\platfor ms\android\gradlew cdvBuildDebug -b C:\Users\Renan\workspace_html5\FIAP\Phonegap \phonegap-test\test\platforms\android\build.gradle -Dorg.gradle.daemon=true Unzipping C:\Users\Renan\.gradle\wrapper\dists\gradle-2.2.1-all\2m8005s69iu8v0oi...

How to run lastTask after forEach

javascript,angularjs,cordova,ionic-framework,promise
I have an array of images which I iterate and upload each to a remote server. Once the file is uploaded I use the result to get the file name and push to another array. The problem I'm having is that not all results are being pushed to the array....

Cordova Angular Android back button does not trigger ng-if

javascript,android,angularjs,cordova,back-button
In Cordova Angular, back button does not seem to trigger ng-if. I have my code like this: html <div class="buttons" ng-if="!isNavButtonActive()"> <a class="button icon-left ion-chevron-left button-clear"> {{ isExitBackActive() ? "Exit" : "Back" }} </a> </div> controller $scope.isNavButtonActive = function(){ return $location.path() === '/app/menu'; } $scope.isExitBackActive = function(){ if($rootScope.previousState === '/app/menu')...

Loading binary image data to an image fails on Android 4.1 in Cordova Project

android,cordova,sencha-touch,blob,filereader
I have serious issues loading binary image data into a simple image-element. I coded a cordova app (using Sencha touch) which loads images the following way: xhr.open('GET', imageUrl, true); xhr.responseType = 'blob'; xhr.addEventListener('load', function () { if (xhr.status === 200) { // onload needed since Google Chrome doesn't support addEventListener...

Change application direction using Phonegap or SAPUI5

html,cordova,phonegap-plugins,phonegap-build,sapui5
I am not able to change my app direction using (html dir="ltr"), after android device language has been changed to arabic. How can I change my app direction to ltr using phonegap or sapui5?

REST service from Cordova with WAMP (local)

cordova,rest,prestashop
I am trying to extract products in a web service (prepared by my PrestaShop website), using WAMP (in local so). My code : index.js var app = { initialize: function() { this.bindEvents(); }, bindEvents: function() { this.onDeviceReady(); }, onDeviceReady: function() { var password = ''; var key = 'F51Q7VWPRREG7TA25DEY8UIZT8V79E5V'; var...

how capturing geolocation with device offline - cordova

javascript,android,cordova,geolocation
I am developing an application using the cordova and found a need to take the data of latitude and longitude of the User, but my application will be used offline (without internet access). I'm with two questions: 1 - How to check if the unit is active GPS or not?...

Content-Security-Policy breaking console.log output

javascript,cordova,console.log,content-security-policy
Developing an app on version 5 of cordova (using the phonegap framework). The latest updates request you use a Content-Security-Policy meta tag as per their documentation: https://github.com/apache/cordova-plugin-whitelist Here's my tag for the app: <meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' *.example.com"> When I include this everything...

New font for iOS 9 will be applied on Ionic apps?

ios,cordova,fonts,ionic
iOS 9 is expected to be released with new font - San Francisco, replacing its tranditional Hevetica fonts. I wonder how Ionic will respond to this kind of change. Here are the things that I am curious to know at this moment. Will old Ionic apps automatically use San Francisco...

How to download a library dependence on gradle for external use?

cordova,android-studio,gradle,android-gradle,cordova-plugins
I have a project on PhoneGap and I am trying to build a plugin to use a FilePicker library. So, I build one Android Studio Project and I have it working. So, right now, that I know that I know how to do it, I just need to know how...

error “The connection to the server was unsuccessful. (file:///android_asset/www/index.html)” in codovar and jqury

android,jquery,cordova,jquery-mobile
I created an app for android using cordova and jquery mobile. It works well when I test run the code using google chrome, but when I try to run it on android emulator using android studio in cmd (locate>cordova emulate android) it doesn't working. When i try to run it...

Different performance with Intel XDK

cordova,jquery-mobile,phonegap-build,intel-xdk
I use Intel XDK to develop apps with HTML and Cordova. I use jQuery Mobile. My question is: Why if I debug app with XDK and an Android device I have a very good performance, and if I compile app into an .apk, same code works very very slow? Thanks...

How can i save base64 to image file on cordova / ionic or upload to server?

javascript,image,cordova,base64,ionic
I write cordova application using ionic framework. My goal is to receive image from the gallery and send it to the server as base64 string. But when I do so server says that request is too large and denies it. I’m kinda stuck at this moment. What is correct way...

Rectangular post body empty

angularjs,cordova,ionic,restangular
I'm attempting to post a new user to my servers using rectangular. The post is failing because the post body is always blank. var userData = data.logged_in_user; var userDetails = { id: userData.pk, username: userData.username, pic: userData.profile_pic_url, full_name: userData.full_name }; Restangular.all('users').post(userDetails) .then(function() { console.log('Success') }) .catch(function() { console.log('Error') }); I...

Page reloads even after button click

javascript,jquery,html,cordova
I have 3 html files - start.html, loginPage.html and dashboard.html. When the login button is clicked, it should load dashboard but I am unable to access the button. Start.html <html> <head> <meta http-equiv="Content-Security-Policy"> <meta name="format-detection" content="telephone=no"> <meta name="msapplication-tap-highlight" content="no"> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width"> <title>Amazon App</title>...

Adding dymatic data into phonegap plugin

javascript,android,jquery,cordova,phonegap-plugins
I'm trying to dynamically add data into a phonegap plugin <a href="#" onclick="window.plugins.socialsharing.share( null, null, 'document.getElementById('setquote').innerHTML;', null )"> I have try using this document.getElementById('setquote').innerHTML; to get the data into the plugin but no luck....

Cordova cordova.plugins is undefined on win8 but not on iOS

javascript,cordova,cordova-plugins,visual-studio-cordova
I'm using the plugin fileopener2 and to use it, I must call cordova.plugins.fileopener2.open(...); When I run this on iOS, everything works perfectly. However, when I run the app on win8, I get an error telling me that cordova.plugins is undefined. Also, I double checked that, after 'ondeviceready' is fired, I...

No plugins are working in Cordova

javascript,cordova
I can successfully install all plugins but none of them seems to work. I have also the cordova.js included: <script type="text/javascript" src="cordova.js"></script> <script src="js/jquery.js"></script> <script src="js/tocca.js"></script> <script type="text/javascript" src="js/index.js"></script> Then when I use simple $('.curpos').html(device.cordova); in index.js, it does not work. This is output from cordova plugin command: com.admob.pro 2.6.2...

Android: Edit an image by 3rd party app / Intent ACTION_EDIT

android,cordova,android-intent
I'd like to use 3rd party apps like Skitch to "annotate" photos taken in my app and, of course, have the updated photo saved back to my app. The photos are stored in the private directories of my app and are exposed via a ContentProvider. The Intent to open a...

$scope does not getting called in view

angularjs,cordova,ionic-framework
I am having one cordova mobile app developed with the help of angularJS. In that, i have added the event listener 'resume' that calls when you log in to app, come out from the app without logout and again tap on the application icon on mobile to see it again....

How do i send a SMS using phonegap without opening the native app?

javascript,cordova,phonegap-plugins,intel-xdk
I am making an SMS app using HTML,CSS, and JAVASCRIPT on intel xdk. I have tried quite a few SMS phonegap plugins, but all open the native SMS app and the user has to click send again. Is there anyway i can send the SMS using the above coding languages...

Mobile hybrid app access database with web service from another country

cordova
I have a website that be hosted in a web hosting company, the website has database interaction with database server that provided by the hosting company too. I am using web services like RESTful for the website to access and update database. But currently I'd like to build a hybrid...

jquery mobile all the data attribute references does not work

jquery,html,css,cordova,jquery-mobile
In my header i included <link rel="stylesheet" type="text/css" href="css/jquery.mobile-1.4.5.css"> <script type="text/javascript" src="js/jquery-1.11.2.js"></script> <script type="text/javascript" src="js/jquery.mobile-1.4.5.js"></script> and whenever I use for example data-role="page" the expected effect does not acquire. why would that happen? edit: https://jsfiddle.net/f0eurafv/1/ notice the text input in the login form...

How are PhoneGap, SMS and Push Notifications related?

cordova,push-notification,sms,phonegap-plugins
This might sounds like a really obvious question, but I've been unable to confirm anything in all my googling. I'm really new to mobile development and I'm just trying to understand the theory behind how all this relates to each other. If I have a mobile app (created in PhoneGap/Cordova)...

Mobile App Performance : Polymer or Ionic?

javascript,cordova,ionic-framework,polymer,google-chrome-app
I am a web developer and I heard that Google just released the "production ready" version of Polymer (1.0). On the other hand, I have heard a lot about Ionic since 2013. I am now trying to find the best way to make a web app look native, responsive and...

How to change Cordova application icon?

cordova
I designed an icon in 4 standard sizes: hdpi, ldpi, mdpi and xhdpi. I put these icons into: "\platforms\android\res\drawable-hdpi" "\platforms\android\res\drawable-ldpi" "\platforms\android\res\drawable-mdpi" "\platforms\android\res\drawable-xhdpi" folder. The names of every icon is "icon.jpg". How can I use these icons as my application icon?...

PhoneGap: Offline App Use

javascript,cordova,offlineapps
I'm currently developing an app using PhoneGap. What I currently have is my app pulls info from online, such as tweets from a certain user account, and displays a feed on one of the pages. I want to have this page available for offline use if the user is not...

Image Map Area Highlight and Zooming with iScroll 4

javascript,cordova,iscroll,imagemapster
In my Cordova project, I have a slider with multiple zoomable images (by iScroll) and I would like to use map to highlight some area always. But I have tried many libraries like imagemapster.js, maphilight.js but these libraries prevent images' zooming feature. Is there any library that I can use...

how to handle the application on outgoing and incoming calls in ios phone phonegap programming?

javascript,ios,objective-c,cordova,phonegap-plugins
Can any one suggest me how to handle a application in iOS phonegap if any outgoing calls and incoming phone calls. Actually I m new to phone-gap based applications Currently I m developing an application to track the location in background. If any incoming or outgoing call appears ,I need...

How to refresh iframe url?

angularjs,cordova,ionic-framework,ionic
I am creating an app using ionic in which I am displaying a URL using iframe. This is the HTML code: <iframe id="myFrame" width="100%" height={{iframeHeight}}> This is the angular js: $scope.iframeHeight = window.innerHeight; document.getElementById("myFrame").src = value['url']; Everything is working, however when I make changes on the site from the backend...

How to show icons in $cordovaActionSheet plugin buttonLabels in ionic framework?

angularjs,cordova,ionic-framework,cordova-plugins
I am trying to add icon in buttonLabels in $cordovaActionSheet plugin but it didn't working. I have tried var options = { title: 'Share', buttonLabels: ['<i class="ion-social-facebook"></i> Share via Facebook', '<i class="ion-social-twitter"></i> Share via Twitter'], }; but it prints tag as it is. How do I show icons in button...

Best option for converting a JSP website to Android app?

android,cordova,webkit,native,hybrid-mobile-app
I have set up a JSP website on a Tomcat 6.0 server. Now I want to create an Android app to fetch the web's data and view it on the phone. I have considered three possible plans for this: Rewrite the website into WAP version and use a Webview to...

Adding visionmedia/debug to an Ionic/AngularJS application

angularjs,cordova,ionic-framework
I would like to add some debugging to our Ionic/AngularJS application. I was thinking about the visionmedia/debug library to use. But how can I add this library on a more Angular way? You can see a plnkr with a working example of the current code. Make sure to open the...

cordova ionic barcode scanner error

cordova,ionic-framework,barcode-scanner
i am getting same error barcodescanner.js:130 Uncaught ReferenceError: require is not defined ionic.bundle.js:20306 ReferenceError: cordova is not defined Cordova CLI: 5.0.0 Gulp version: CLI version 3.8.11 Gulp local: Local version 3.8.11 Ionic Version: 1.0.0 Ionic CLI Version: 1.4.3 Ionic App Lib Version: 0.0.19 ios-deploy version: Not installed ios-sim version: 3.1.1...

Cordova build fails, can't find ${appt}

android,cordova,ant
The command cordova build android fails with the following output BUILD FAILED F:\Programs\SDK\tools\ant\build.xml:597: The following error occurred while executing this line: F:\Programs\SDK\tools\ant\build.xml:649: The following error occurred while executing this line: F:\Programs\SDK\tools\ant\build.xml:694: Execute failed: java.io.IOException: Cannot run program "F:\code\asistenciaBT\platforms\android\CordovaLib\${aapt}" (in directory "F:\code\asistenciaBT\platforms\android\CordovaLib"): CreateProcess error=2, El sistema no puede...

How to build Android application in Cordova?

android,cordova
I use Cordova for building an Android application. When I execute cordova build android --release command this error is displayed: Error: please install Android target: "android-22" My target lists: 8, 15 and 19 When I change target to android-19 or android-15 (in \platforms\android\project.properties) and execute cordova build android --release this...

File upload error code 1 in ng-cordova filetransfer plugin

angularjs,cordova,ionic-framework,visual-studio-2015
I am working on a cross platform mobile App using visual studio 2015 rc's Apache cordova template and ionic framework.App's main functionality is to upload images from camera to a remote hosting. for that purpose i am using File-transfer plugin in angular controller and RestApi (ASP.net webapi) at server side....

Ionic - 'platform add android' Comand failed with exit code ENOENT

java,android,cordova,environment-variables,ionic
Please help me get my Windows 8/Ionic/Cordova/Android environment setup correctly. I'm trying to use the command 'add platform android' but am unable to get it to work. I have seen similar posts to this but none quite the same. I've tried un-installing Cordova and Ionic and reinstalling them as recommended...

Cordova plugin error: Resource interpreted as Script but transferred with MIME type text/plain

javascript,cordova,ionic-framework,cordova-plugins
I'm using Cordova 4 with Cross-walk and on android it throws the 'Resource interpreted as Script but transferred with MIME type text/plain' error for all plugins' javascript files. I have already added the Whitelist plugin and added the following to my index.html file: <meta http-equiv="Content-Type" content="application/javascript; charset=UTF-8"> <meta http-equiv="Content-Security-Policy" content="default-src...

Cordova with Windows Azure Storage, if the access to my container is public, do I still need authentification?

cordova,azure,azure-storage-blobs
So I'm using Cordova with Windows Azure Storage and I'm using the plugins file-transfer and file from Cordova to download a file with public access from Azure. I get the error code 1 (FileTransferError.FILE_NOT_FOUND_ERR). I am pretty sure my URL is correct, so I was wondering if it was due...

Meteor xcode project created with 'meteor build' vs. project created with 'meteor run ios-device'

iphone,xcode,cordova,meteor,braintree
I have a specific question about any differences in the build process for a Meteor (IOS) xcode project when you run the following two commands: meteor run ios-device --mobile-server 10.0.1.16:3000 --settings settings.json vs. meteor build /mobile-build --server 10.0.1.16:3000 --mobile-settings settings.json Both create an xcode project, which I can then run...

Executed 0 of 0 ERROR when running Karma on Cordova project

cordova,requirejs,karma-runner
I have an apache cordova project setup and I'm trying to use Karma for the first time. I've started the project like this: karma start test/karma.conf.js --verbose But all I'm getting is: INFO [karma]: Karma v0.12.36 server started at http://localhost:9876/ INFO [launcher]: Starting browser Chrome WARN [web-server]: 404: /favicon.ico INFO...

How do you specify URLs for Contact.photos?

cordova,phonegap-plugins,contacts,android-contacts,cordova-plugins
https://github.com/apache/cordova-plugin-contacts#contact Where can I put the image file (eg can I have it on S3, or shipped with the app in the resources), and what is the correct format for the URL? var contact = navigator.contacts.create(); contact.photos = [new ContactField('url', URL, true)]; contact.save() ...

Cordova compiling fails with admob - missing com.google.android.gms:play-services-ads:+

android,cordova,admob
After a problem integrating admob into my cordova application, I've decided to follow the example layed out here: https://github.com/floatinghotpot/cordova-admob-pro As I work with a windows 7, I've made the required changes, but it looks something like this: C:\> cordova create test1 com.rjfun.test1 Test1 Creating a new cordova project. C:\>cd test1...

Cordova- embed a external website into cordova app

cordova,browser,web-applications,website
I have a website. it run good in server I'm building a cordova app to embed this website and I want to open this website into this cordova app. I use window.open(..., "_blank").. window.open(..., "_selt") modify config.xml <access origin.... but when I run app in my device, website auto open...

Architecture of an app when using CouchDB/PouchDB

cordova,couchdb,ionic-framework,sails.js,pouchdb
I am wondering how the architecture should look like when using PouchDB as a local storage in a mobile app instead of localStorage. At this moment I am used to cache my app's data into localStorage and when needed I perform an API call to the backend to request or...

__createApplicationIconFromImage_block_invoke: Error: unable to create icon mask image from image named “AppIconMask.png” at scale 2.0

ios,objective-c,cordova,phonegap-plugins
I am getting "___createApplicationIconFromImage_block_invoke: Error: unable to create icon mask image from image named "AppIconMask.png" at scale 2.0" error while opening a PDF Viewer using iOS Cordova phone-gap based application Unknown activity items supplied: ( "QLPrintPageRenderer: 0x187bc720>", "UIPrintInfo: 0x1c0b51f0>" ) //While executing present View : [self.documentInteractionController presentPreviewAnimated:NO]; Can anyone please...

fabric.js resize canvas to fit screen

javascript,android,cordova,canvas,fabricjs
I'm currently developping an application on mobile device (android and iPhone) with ionic and cordova. I would like to edit a picture. I use fabric.js library to do that. Fabric.js converts an image and other items into canvas. Then I add some image on the canvas (stickers) and export it...

Cordova plugin development - adding aar

android,cordova,plugins,android-studio,aar
I am new to the cordova plugin development stuff. I want to write a plugin which is able to open a new android activty and showing some advertisement. So I followed a simple tutorial here. That works very well and as expected. Next step is to include this Android Studio...

Cordova Application not installed in my phone

android,cordova
I use Cordova for build an android application . When I built apk via cordova build android --release command, and copy the apk file to my phone the application could not be installed and this error displayed on phone : Instalation failed.. My phone android version is 4.4.2 The application...

how to run scripts in hook folder cordova?

cordova
I am trying to run scripts within the hook folder as described here; http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/. I have created a cordova project and ran the cordova platform add (ios) command. Then I added two different scripts (one test.sh and one test.js). Here is the sh/bash one; #!/usr/bin/env bash echo "yo" mkdir t...

Cordova Andorid app update / versioncode

android,cordova
i need to update my android App. For this the Google Play Store says it has to be an other version code. How can i update it? If i go into the androidmanifest.xml and set android:versionCode="1" to android:versionCode="2". It will return to 1 after i debugg. What is wrong? Lukas...

Visual Studio 2015 RC Cordova Tools - Plugin Fails to Launch

javascript,cordova,cordova-plugins,visual-studio-2015
After struggling for several hours with getting Visual Studio 2015 Cordova Tools set up and running, the first plugin I add, Device, fails to launch at onDeviceReady. No error is thrown. It simply does not launch and when I attempt to access one of its properties, then I get a...

How to use Azure Mobile Service with Cordova Project AngularJS and C#?

c#,angularjs,cordova,sql-azure,azure-mobile-services
I want to use a database hosted on Azure with some sort of backend for my app made with apache cordova tools for visual studio. My thought was that I could create my JS object in the app itself send that to the C#/JS code on azure which will then...

Programmatically enable GPS of device when application opens in cordova

angularjs,cordova,ionic,cordova-plugins
I have been working on cordova ionic app with angularJS frontend. Here when this app is getting launch the device should check for the status of the GPS whether it is on or not and if it is not on then make it on automatically. I didn't found any cordova...

Cordova Inappbrowser - window.history.back and forward won't work inside executescript function

javascript,jquery,cordova,inappbrowser
I set the location to no to hide the default bar of the inappbrowser and used insertcss and executescript to create my own bar. The rest of the buttons i added are working except for the back and forward button that i creatd. I've already tried navigator.app.backHistory(); window.history.back(); window.history.go(-1); history.go(-1);...

How to store cordova geolocation result in a variable?

angularjs,cordova,ionic-framework,ngcordova
Hi i have installed ngCordova and trying to accesss the lat long value using this function $scope.lat = ''; $scope.long = ''; var posOptions = {timeout: 10000, enableHighAccuracy: false}; $cordovaGeolocation.getCurrentPosition(posOptions) .then(function (position) { $scope.lat = position.coords.latitude $scope.long = position.coords.longitude }, function (err) { // error }); console.log($scope.lat, $scope.long); When i...

Can't add android platform to ionic project

android,cordova,ionic
I want to add Android to my Ionic App, so I type ionic platform add android in my console and the only output what I get is and no android is added Updated the hooks directory to have execute permissions Saving platform to package.json file My enviroment variable are: export...

App Crashing on contact.save() when using ID - Apache Cordova

android,angularjs,cordova,visual-studio-cordova
Edit: I have tried this on multiple APIs and also an actual android device and it still crashes on save. I'm developing a contact based app on android using Tools for Apache Cordova for Visual Studio and the cordova contacts plugin (v2.13). I can currently save and retrieve contacts but...

Bluetooth LE app, how to build it cross-plaftorm (iOS-Android)?

android,ios,cordova,bluetooth,bluetooth-lowenergy
I am working on an app that talks to a Bluetooth LE device. I would like some way to avoid developing it twice, for iOS and for Android. Is there a cross-platform app framework that has good support for Bluetooth LE? I have had a quick look at frameworks like...

Unable to display SQLite data as listview using phonegap

javascript,html,sqlite,cordova
The function get_list() here is able to execute the query but not able to display the rows. function get_list() { db = window.openDatabase("timeDB", "1.0", "time", 200000); db.transaction(populateDB, transaction_error, populateDB_success); function populateDB(tx) { tx.executeSql("SELECT (date) FROM time", [], function (tx, res) { var len = result.rows.length; if (len > 0) {...

iOS9 ATS: what about HTML5 based apps?

cordova,https,sencha-touch,ios9
According to the documentation from https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS9.html#//apple_ref/doc/uid/TP40016198-DontLinkElementID_13, Apple forces to use HTTPS over HTTP in iOS 9. App Transport Security App Transport Security (ATS) lets an app add a declaration to its Info.plist file that specifies the domains with which it needs secure communication. ATS prevents accidental disclosure, provides secure default...

SignalR working in browser not in app

cordova,signalr,ionic,hybrid-mobile-app
I have an app which uses signalR when I try it in the browser it works properly. of course the connection is to an absolute URLץ When I deploy the app to an android device it doesn't work. I connected Chrome to do remote debug to the app's webview and...

Undefined variable admob in PhoneGap AdMob plugin

android,ios,node.js,cordova,jquery-mobile
It's difficult for me to explain my problem because my english is not good, hope you would understand. This is my first try to make a mobile game, all done and I want to show ads by AdMob. I have tried some PhoneGap AdMob plugins such as admob-phonegap , cordova-admob-pro...

ember 2.0, Cordova and onDeviceReady

cordova,ember.js
The code in app.js looks like this: var App; Ember.MODEL_FACTORY_INJECTIONS = true; App = Ember.Application.extend({ modulePrefix: config.modulePrefix, podModulePrefix: config.podModulePrefix, Resolver: Resolver }); export default App; How do I use deferReadiness and advanceReadiness here ? I need this to call advanceReadiness if the cordova deviceReady event is fired. ...

Cordova Tools for Visual Studio won't build

visual-studio,cordova
Task Parameter:Language=en-US (TaskId:32) Task Parameter:BuildTarget=RippleNexus (TaskId:32) 'C:\Users\ptaffet.SOHOSOFT\AppData\Roaming\npm\vs-cli.cmd' is not recognized as an internal or external command, (TaskId:32) operable program or batch file. (TaskId:32) Done executing task "MdaVsCli" -- FAILED. (TaskId:32) Done building target "PrepareForRippleRequirements" in project "rewordabble.jsproj" -- FAILED.: (TargetId:23) Project Performance Summary: I recently re-installed Cordova Tools for...

Not able to navigate to certain URL in cordova

android,cordova,whitelist
I'm not able to navigate to a certain URL when I'm using the following command: window.location.href = "http://google.com"; In my cordova config.xml file I already specified to access to all sources using the default cordova setting with the wildcard: <access origin="*" subdomains="true" /> Here is what location prints to the...

Triggering function on an particular count in a for loop

javascript,jquery,cordova
i am running an sql query in an loop . the query should run only if the loop count is equal to 500 . for E,g $.ajax({ response:function(e){ // Here e.length will be unknown for(var i in e){ if(q1cnt <= 500){ // do some appending var k = k +...

How to copy a photo from gallery to dataDirectory?

javascript,cordova,plugins,ionic-framework
I'm trying to copy a file from photo gallery to dataDirectory on Android 5.0 device. Unfortunely Cordova camera plugin returns path in format like: content://media/external/images/media/8793 var options = { quality: 50, destinationType: Camera.DestinationType.FILE_URI, sourceType: Camera.PictureSourceType.PHOTOLIBRARY, saveToPhotoAlbum: false }; return $cordovaCamera.getPicture(options).then(function (result) { return handlePictureResult(result); }) $cordovaFile.copyFile('content://media/external/images/media/8793', null,...

Cordova verify app is asleep when not active

cordova,ionic-framework
I'm having test users say that my app is taking too much battery life on their android devices. I'm testing on a tablet (nexus 7) and in the Settings > App info > Permissions I see prevent tablet from sleeping. So does this mean that my app is keeping the...

Visual Studio Tools for Cordova - FAILS

android,cordova,visual-studio-2015,visual-studio-cordova
Everytime I build I get the below error. I'm new to cordova in Visual Studio. I actually tried installing for VS2013 first. I downloaded VS 2015 RC community and I'm trying to get the project started. However I'm getting the below message. Attempt 1: I tried going into options>VS tools...

Cordova build : Error :Failed to run “java -version ”

cordova,phonegap-plugins,phonegap-build
I've installed the latest Apple update for Java, here is what the terminal now says: $ java -version java version "1.8.0.0_25" Java(TM) SE Runtime Environment (build 1.8.0.0_25-b18) Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode) After that I still have the following result: $ cordova build Running command... [Error:...

How to get the device's uuid and model information in ionic based App?

cordova,ionic-framework,ionic
I have this piece of code in order to recognize/get the device information. ionic.Platform.ready(function() { // will execute when device is ready, or immediately if the device is already ready. $scope.deviceInformation = ionic.Platform.device(); $scope.currentPlatform = ionic.Platform.platform(); $scope.currentPlatformVersion = ionic.Platform.version(); }); as per the documentation given Here. The ionic.Platform.device(); will return...

Build full-featured iOS application with just PhoneGap Build and no Mac-like hardware [duplicate]

ios,cordova,phonegap-build,appstore-approval
This question already has an answer here: PhoneGap, PhoneGap Build and iOS - Mac needed? 1 answer Since paying $99 for Apple Developer Program is a bit tough decision for me (especially, if it would be a wasted money), then the question is quite simple: Can I build full-featured...

Can't create Windows Phone appx bundle from Cordova project

cordova,windows-phone,windows-phone-8.1,visual-studio-cordova,windows-phone-store
I need to create an appxbundle file for Windows Phone Store but unfortunately, the Visual Studio 2015 RC Cordova Tools build only appxupload with appx file. The Cordova version is 5.0.0. I've found two workarounds from this post. Unfortunately, none of them is working. The first one 1.) Another way...

How to Upgrade Cordova 3.5.0-0.2.4 to any higher version?

android,cordova,cross-platform,phonegap-plugins,cordova-3
There are many questions in stackoverflow and in other blogs which says just execute the below command to upgrade- sudo npm install -g [email protected] After executing the above command in my terminal i get the following- /usr/bin/cordova -> /usr/lib/node_modules/cordova/bin/cordova [email protected] /usr/lib/node_modules/cordova ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) └── [email protected]..

How to request new banner ad in AdMob Pro?

angularjs,cordova,admob,ionic,cordova-plugins
I have an Angular Ionic mobile app. I recently switched from the old AdMob cordova plugin (https://github.com/floatinghotpot/cordova-plugin-admob) to the AdMob Pro plugin (https://github.com/floatinghotpot/cordova-admob-pro). I have most everything working, but I can't figure out how to request a new ad. The old plugin had a function requestAd that would get a...

html query string with blackberry

javascript,html5,cordova
My hybrid mobile app needs to work on blackberry devices as well. I noticed that a simple html query string such as http://example.com/over/there?name=ferret Works also this way using the anchor tag (even if it is not standard) http://example.com/over/there#name=ferret using Android and iOS. I don't have a blackberry to try but...

Android Splash Screen not working with Cordova 5.0.0

android,cordova
I can't get the splash screen images to load? It flashes white, then goes black and after a few seconds the app loads. My config.xml is as follows: I'm building using Cordova 5.0.0 targeting Android. I have ported my app over from PhoneGap where it builds successfully and splash screen...

How to google admob integration in phonegap?

cordova,phonegap-plugins
I have made one application in phonegap.I will integrate google admob in application.So How to integrate admob in phonegap. Cordova version:- 5.0.0 please give me suggestion or url for Admob integration....

CFBundleDocumentType is not working in myproject-Info.plist file

ios,objective-c,cordova,ionic
I am trying to build an app in ionic framework. I am trying to build this functionality like when i click on photo from gallery and hit share A share pan will open . i want to show my app here. I made some modification in plist file here is...

Google Maps on Ionic Framework/Cordova not working on android build

cordova,ionic-framework,phonegap-plugins,cordova-plugins
I have been writing code for an app to track user location and display it using Google Maps. My code works perfectly in browsers (Safari,Firefox,Chrome) but doesn't work at all on mobile (android). The google maps api doesn't work and the navigation is unreliable. I'm a ionic newbie and wrote...

Cordova Keychain Plugin and SSKeychain Plugin do not work together

ios,cordova,cordova-plugins,keychain
We are having a tough time trying to shared info between two apps with keychain service. We have two apps: 1.- CoreApp, which is native and use this plugin SSKEYCHAIN to set values: + (BOOL)setPassword:(NSString *)password forService:(NSString *)serviceName account:(NSString *)account; Where are setting for paramenter the following values: password =...

Creating an Android app using PHP

php,android,database,cordova
I'm going to create an Android app for the first time, and I wanted to do it in PHP, I've done some research and found the likes of PhoneGap, but I'm still quite short in the area, could someone give me a start? What I'm going to be doing is...

Debbugging angularjs app without ripple or browser because it uses cordovasqlite plugin

angularjs,sqlite,cordova,debugging
In my AngularJS/Ionic app I use the cordova-sqlite plugin and a local database to store data; I also use a web service to fill the database with data from a remote database. Well, sometimes I get a strange behaviour when I try to get data from the remote database. My...

Cross side scripting with Cordova/ionic application

javascript,cordova,ionic
Cordova will not allow a get request To another URL. The internet points to this plugin https://github.com/agamemnus/cordova-plugin-whitelist However it has zero infomation on how to install it? This is my first ionic cordova application. QUESTION How do I allow Cross-side-scripting so that I can hit filltext from cordova application using...

Cordova FileTransfer not sending custom headers

javascript,php,cordova,file-transfer
I try to send custom header with cordova FileTransfert but when i check in PHP the function getAllHeader(), 'i not find my custom header. var options = new FileUploadOptions(); options.fileKey = "picture"; options.fileName = imageData.substr(imageData.lastIndexOf('/')+1); options.mimeType = "image/jpeg"; var headers={'headerParam':'headerValue'}; options.headers = headers; var ft = new FileTransfer(); ft.upload(imageData, url,...

jquery mobile change icon project android cordova

android,html5,cordova,icons
Hy I Can not Change the ' icon of the project Cordova . You can tell me what to ADD in the xml file ? and I have to change all the icons in the / res / drawable ? All the program is the last version. Thanks....

Can't deploy Visual Studio Cordova app to iPhone using remote agent: CordovaModuleLoadError

ios,cordova,visual-studio-cordova
I am trying to deploy my Cordova app to my iPhone using Visual Studio 2015 RC by Remote Agent > Local Device. I have successfully installed, ran and connect the remote agent to my Visual Studio. According to this link, when I run Local Device, iTunes should pop up on...

Why does WebSQL not work with iOS applications made with PhoneGap?

javascript,jquery,ios,cordova
I just ported my PhoneGap application into the iOS platform, it would seem that the iPad I'm testing on (as well as the simulators provided by xCode) do not want to work properly with WebSQL... I've chased the issue down to the root, I think. Essentially when I try to...

How to show capture video in Phonegap?

jquery,cordova,phonegap-plugins,video-capture
i am using phoengap capture video plugin i have used this code <!DOCTYPE html> <html> <head> <title>Capture Video</title> <script type="text/javascript" charset="utf-8" src="cordova.js"> </script> <script type="text/javascript" charset="utf-8" src="json2.js"></script> <script type="text/javascript" charset="utf-8"> // Called when capture operation is finished // function captureSuccess(mediaFiles) { var i, len; for (i = 0, len =...

p12 certificate is always incorrect at Pushwoosh

ios,cordova,push-notification,pushwoosh
I'm using Pushwoosh along with my Cordova App but I have now a problem to activate it. When I want to enable Pushwoosh for iOS I have to provide a 'Certificate File (.cer)' and a 'Push Certificate (.p12)'. Problem is that Pushwoosh always says that my .p12 file is incorrect...

Tools for Apache Cordova - Installed Plugins are skipped in build

cordova,github,git-branch,visual-studio-2015,visual-studio-cordova
i have a cordova app with 6 plugins and the strange behavior that app is not working after i create a new clone of the sources from github. If i install a plugin over the config.xml dialog and build the android version of the app. The native source file (*.java)...

PhoneGap / Cordova: Upload only new images with camera

cordova,phonegap-build
I am building an application that will require the user to take a photo and upload it to the server. The user may not access their camera roll and the photo must not save to the camera roll. I cannot find any documentation on this. Is it possible?...

Cordova geolocation watchPosition sensitivity

cordova,geolocation,phonegap-plugins,ionic,cordova-plugins
How often would watchPosition be called if the position is constantly updated? Is this something that can be configured? The docs just say "When the device retrieves a new location, the geolocationSuccess callback executes".

npm error : 404 Not Found: cordova-plugin-whitelist

visual-studio,cordova,plugins
I have installed a cordova-plugin-whitelist in Visual Studio project with cordova from GitHub but when I recompile, I get this error: Calling plugman.fetch on plugin "[email protected]" Fetching plugin "[email protected]" via plugin registry MDAVSCLI : npm error : 404 Not Found: cordova-plugin-whitelist All files of plugin there are correctly under plugin...

Cordova Plugin to ask for Ratings

cordova,phonegap-plugins,cordova-plugins,rating
I am looking for a cordova plugin that asks for ratings similar to askingpoint.com. Basically I need a plugin that can send a popup to the user to rate the app after a specific task or amount of days using the app. Of course this needs to be for Phonegap/Cordova

Visual Studio, Ripple Emulator and CORS/Cross Domain Ajax

visual-studio,cordova,hybrid-mobile-app,ripple
I have an issue with Visual Studio when working on a multi device hybrid app. When I try do to an ajax call to an external webservice, and get some errors in ripple. (Cross Domain Security issues). My code works fine when deploying to a mobile device. From research I...

Phaser JS + Phonegap and Ads - AdMob or iAd

cordova,html5-canvas,admob,phonegap-plugins,phaser-framework
I have spend the last 2 days trying to get Ad's working on my HTML5 Phaser JS game. Im using this plugin: https://github.com/floatinghotpot/cordova-admob-pro The plugin is installed as far as I can tell config.xml has the below: <feature name="AdMob"> <param name="ios-package" value="CDVAdMobPlugin" /> <param name="onload" value="true" /> </feature> When I...