Newest cordova Questions

Q&A for professional and enthusiast programmers

File not found on Android <= 5.1, but found on >=6.0

I'm using cordova-transfer-plugin and cordova-file-plugin to download and store video files. I store it using this.file.dataDirectory + 'path/to/downloads/video.mp4'. When I test this on an emulator ...

Cordova Crosswalk WebRTC using Voice Call Stream

How to use Voice Call Stream instead of Music Stream for HTML5 Audio? I currently use Crosswalk for Cordova WebRTC. Thanks

Media query to shrink Ionic >=2 alert not working on IOS

I have found that the Ionic alert does not seem to adjust it's height when we go into landscape, so if I have many options it is too high on most phones if put into landscape. To get around this I ...

How to improve perfomance of cordov ios app

I am trying to improving performance of IOS cordova app i tried to link css and js file from the app and access the main files from server but it doesnt work my question is their any possible ...

Ionic replacing localStorage with persistent storage synchronously

I've ran into the issue with my Ionic app where localStorage is getting wiped due to lower memory. I've investigated many different persistence mechanisms sqlite, Cordova native storage, etc. My ...

steps must be required for cordova IOS push notification

I am trying to implement fcm push notification in IOS cordova app i configured the app using Appid with push notification and provisioning key and uploaded APNs SSL certificate to developer account -...

Cordova plugin install and use in framework7

I am developing an APP using cordova in Framework7. I need to get users active phoneNumber. So I have installed cordova-plugin-telephonymanagerinfo in Framework7 by using the following command: ...

angular project Cordova build only show a white blank screen

I have angular project that i plan to build using Cordova. the project works perfectly on google chrome, and APK build. however, when i build for iOS, it give me blank white screen. below is the ...

Couldn't find ionic.config.json file inside an ionic2 project

I m running the command : ionic platform add android , and I am inside and ionic2 project , and I have the ionic.config.json file in my app : { "name": "menu", "app_id": "", "v2": true, "...

cordova content security policy giving login issue

When i am adding this line on my index.html page [which is a login form] <meta http-equiv="Content-Security-Policy" content="default-src 'self' https://codepush.azurewebsites.net/ data: gap: https:...

how to make migration from classic Hybrid app to cordova based Hybrid app in MobileFirst?

how to establish migration from classic Hybrid app to cordova based Hybrid app because the latest MF version supports only cordova based hybrid apps? Is IBM providing any tools for this?

nw_coretls_read_one_record tls_handshake_process: [-9824]

I am creating a hybrid iOS application using apache Cordova. The problem is till iOS 8.2 my application's REST services is working fine but for higher version of OS I am getting tls error. This is ...

Cordova inAppBrowser gives Whitescreen when trying to connect to SalesForce

I'm working on a Cordova Application which has to sync the contacts with a Salesforce installation. When a user clicks on a button, the app will open the inAppBrowser and will go to the salesforce ...

Cordova CLI Android build error

I am building an app using INTEL XDK. When I build the app using the Intel Cloud building system, everything is working ok, and I am able to install the app on my phone. The problem is, the build ...

Phonegap - Device Information not working

I'm trying to retrieve the device UUID using phonegap but the whole device information plugin doesn't seem to be working. I'm just using the sample codes from phonegap site's docs in my index. http://...

Google analytics is working for simulator but not for mobile

I am trying to use google analytic for one of my project which is based on cordova. I have created Web container using google tag manager and linked with my google analytic. Used the google analytic ...

Cordova Build windows 10

I am building a Ionic/Cordova app for windows 10. Dev machine is Windows 10. The app does not works Completely i.e certain features does not work - However if I goto debug console(F12) and change ...

Cordova-plugin-file getFile/getDirectory no callback fire, who can help me

I found the file plugin could not work. My function like this: function (filename, fileObj, succCallback) { window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fs) { fs....

Email body variable

<label for="ctbq">Toner B431:</label> <select name="ctbq"> <option value="00" >00</option> <option value="01">01</option> <option value="02">02&...

Updating RSS-feed automatically inside XML

I have this school project that I'm currently working in. Our scool has own website, which has open RSS for lunch meals and such. My question is following; Since this website updates automatically (...

Backand social sign in issue

I'm using ionic with backand and cordova, Does anyone have faced backand( serverless development and deployment platform ) with sign in problem with github and google. for github i am able to ...

How to clear cache in Cordova/Phonegap app (without removing localstorage)

I have a Cordova app and I noticed that its size is increasing every time I navigate the section where there are many images (links from web and not stored on the device). I think that the reason is ...

phonegap javascript google api doesnt work in apk file

ive just started using phonegap and i can manage to see the map in the browser and the phonegap app, but once i convert the project to apk file(in adobe build), it shows nothing. <!DOCTYPE html>...

Handling Push Notifications via Android's Status Bar

How can I format the push notification so that when it displays on the status bar it can take advantage of the local notification’s construct – show the text and hide the data? Behavior: Push ...

Prompt for consent every time with google auth, Cordova + ionic 2

I'm using this Cordova GooglePlus Plugin to sign-in with Google accounts. The issue is that I'm only able to get the refresh token in the first request. I would like to have this token every time. I'...

Ionic Windows App crash Emulator

I am developing windows app using ionic framework. App working good with Android & IOS but getting crash with windows Emulator 10.0.143xxx. i didn't try with real device yet. With Windows ...

Seemless integration of a browser in Cordova

So we are creating an internal webapp for iOS. Since this should be a really small and simple project we want to simply host an external webpage in a browser and build an app around it. To do this we ...

What does Background Geolocation in Ionic 2 / Cordova mean?

I am implementing geo tracking in my app. There is foreground and background geolocation. In all tutorials I read that the background tracking is for cases when the app is closed. But what if the app ...

Ionic script is not recognised as internal or external command

ionic-hello-world@ ionic:serve D:\Mobile\News ionic-app-scripts serve "--v2" "--lab" "--address" "0.0.0.0" "--port" "8100" " --livereload-port" "35729" 'ionic-app-scripts' is not recognized as an ...

ionic android app giving wsod , unknown error

I have tried to make an app by following this tutorial. I have followed all the steps as given (android), but when I tried to open the app, I am getting a white blank screen with a blue bar at the ...

I get error code 1 using the last version 1.6.2 cordova-plugin-file-transfer android 6.0

Hello every one I have this code and is working in android 4 and android 6.0 file-transfer version 1.6.1 until update last version 1.6.2 cordova-plugin-file-transfer and not working in android 6.0. ...

Runtime error “cannot find module ionic-native”

I am a new to ionic i am developing a simple application my code build successfully but after that giving me the error "Cannot find module ionic-native" I had used the following code to develop the ...

No such module 'Stripe'

I'm new on iOS/Cordova, and facing error with Stripe. I imported Stripe.framework but Xcode says Stripe not found. How can I fix this? Thanks in advance.

Unable to connect to firebaseio.com

OK, this may not be the right place to post this, but I am exhausted on ideas. I have an Ionic2 app with AngularFire2. I can not connect to firebaseio.com from the mobile device. It is likely a ...

Folder cant be seen in Gallery

I m creating a hybrid app using Ionic. I created a folder in my DCIM folder of android where I save downloaded Images, Gifs. Here is my code : window.requestFileSystem(LocalFileSystem.PERSISTENT, ...

Ionic installation issue

I am trying to install ionic. I had set up node.js, Java SDK. and ionic via node.js When I tried to run ionic from cmd, I got the below error. > C:\Users\aaa>ionic info > module.js:...

Face recognition in Hybrid apps: Apache Cordova

I want to create a Hybrid app using apache Cordova where I would like to integrate a face recognition API, preferably https://www.microsoft.com/cognitive-services/en-us/face-api. Is there any way I ...

Intel CS WebRTC v3.3 video calling not working in cordova android

I am new to cordova and android. The application that I am working is a hybrid one. Our application uses Angular JSv1.5 and Bootstrap CSSv3.3.7 Now that we are almost done with our web part we were ...

Wildfly Swarm Restfull API not working when called from outside localhost

I am starting with Wildfly Swarm and I built this API to be used from an app developed with Ionic 2, the API works fine when testing it on my own PC and also with Postman. When I try to run the app ...

Are some files (like pictures) erased when re-launching a cordova iOS app from xcode?

I'm working on a Cordova app for iOS and I've run into something strange. I have the files in the app being stored in persistent storage (I'm sure of that). If I hit the run button in xcode while the ...

I can't read the value that comes from Arduino to Cordova

Good morning, I have an aplicattion in Cordova. I want connect with arduino through bluetooth. I can't receive the value from arduino. var macAddress = "00:06:66:4D:00:00"; var app = { ...

Hotline.io plugin for cordova not working

I am working on a cordova POC for hotline.io plugin - https://github.com/freshdesk/hotline-phonegap. As instructed I have added plugin, added platform when I try to run it shows component not found ...

Prevent Cordova Media plugin from stopping native Android app music

I think cordova-plugin-media is the most popular plugin for playing audio with Cordova. It works great, but whenever a sound is played, the native music player Android app stops. I tested it on my ...

Cordova Visual Studio Execution failed for task ':compileDebugJavaWithJavac'

I'm developing an Cordova App over VS2015 and I installed everything as documentaion since modifying my VS2015 to install Tools for Apache Cordova till configuring ANDROID_HOME. Everythings was going ...

Intel XDK (Cordova) - xml and m4a files don't load in iOS app (createjs)

The problem: Running my game (uses Createjs) on IPhone 5 (IOS 10.2), wrapped with Cordova - no error, images load fine, but sounds and XML files don't trigger "fileload" event. Result: my game works ...

How to use MobileFirst8 server for app developed in MobileFirst7.1?

I've app developed in MobileFirst 7.1 SDK. Now i need to enable push notification behavior for this app(for both android and iOS). But i have only MobileFirst server 8 version. Is it possible to ...

Angulartics: Google Analytics track full URI including anchor

I am using Angulartics and Angulartics Google Analytics [1] to track user flow in an angular page. Tracking events works well. Also tracking pageviews is automatic and works. However in Google ...

Ionic2 - What's the meaning of the At symbol @ on import directives?

I'm a novice on this world of Ionic2 / Cordova. I noticed that some imports have the At: @ symbol in the import directives and others don't have it. For example: import { NavController } from 'ionic-...

Keep user sessions in Cordova Webview

Assuming I have a e-commerce mobile site, where user can login, save some items in shopping cart, and checkout. Can I point to this mobile site from my cordova app, and then expect the login/re-...

Cordova iOS WebRTC Video/Audio Not Working

I am new to cordova and iOS. The application that I am working is a hybrid one. Our application uses Angular JS 1.5 and Bootstrap CSS 3.3.7. Now that we are almost done with our web part we were ...
Translating... 0%