Newest cordova Questions

Q&A for professional and enthusiast programmers

$location.path not reloading page with updated data

I am using sidemenu in my ionic to app pass category Id to product page using service but data is not updating corresponding to current category Id. When I click aaa I am successfully redirected to ...

how to use ajax with android service?

I want a service to keep request PHP file on server and view a notification if there is a change in the returned value I never worked in java before, anyone can help me with it? I searched for ajax ...

BUILD FAILED: configuration of task ':packageDebug' (Visual Studio)

I've encountered this build error and don't seem to get it fixed, the plugins I have are the default whitelist from Visual Studio, geolocation and compat which comes with geolocation. I'm trying to ...

Payfort integration with Cordova app

I am wrking on Apache Cordova mobile app wit Ionic framework for UI and AngularJs for core development. I am trying to integrate with Payfort payment gateway. it works greatly on the web but after ...

Editor for cross-platform app development [on hold]

I am developing an app with cordova/phonegap and looking for a code/design editor to edit my html files. I was using brackets till date as my text editor. But it becomes too difficult to view the ...

Device ID for OneSignal from my Application

I have a web application in which I have added OneSignal and integrated my Cordova app for sending notifications. Now,I need to get the device ID of the user when he/she logs in. this can be done in ...

Ionic: Zoom whole app (let the app appear bigger)

I usually optimize my apps for screen sizes like the iPhone 5. When everything is done, and I simulate the app on screens like iPhone 6 or iPhone 6+, the app looks really silly, as the fonts, and ...

Cordova AJAX calls fail only on release build

I'm developing a Cordova app for android, and I have a strange issue about jquery ajax calls: the debug build have no problem, while in the release one each ajax call fails with an error. If I run on ...

Does having image on the window background slows down android app?

So does setting an image for android:windowBackground slow down the android app? Are there any cons if image is used? I ask specially for a cordova app (don't like the splashscreen).

How do I display native AdMob ads in cordova?

I've been searching around and testing for several weeks and I can't get anywhere with this. I'm making an android app in cordova and ReactJS, (no ionic etc), and I'm trying to display admob ads. I ...

Unable to call Angular Controller on a new page in Phonegap Framework7

The Angular controllers work fine in the index page, but when I call them from a linked page, they don't work. What do I need to do with the controllers to be able to work with pages too? My index ...

Changing the text of an element when referencing it from an array

I'm trying to change text elements in a page based on numerical values I pass back from my server. I manage to store each reference as well as the value from the server, but when trying to access to ...

Ionic working in browser not in device

I am understanding Ionic. My custom css are working fine in browser.I'm expecting a blue color 'binesh' and an edit symbol but in device it is not working. I was actually trying to work with ...

Swift plugin in Cordova causing EXC_BAD_ACCESS

I've created a custom plugin for Cordova in Swift. Generally speaking it's "working", since I'm able to communicate with it through JavaScript. Everything is fine until I try to call a method defined ...

Cordova - download image from URL to the pictures gallery

I created a simple cordova android app and I am trying to download an image from an URL to the pictures gallery, but I really can't figure out what is going wrong. I have already searched a lot here ...

How to access files from otg device in a Hybrid App

I am trying to access OTG device and its files in my hybrid (Cordova) app using "cordova-plugin-camera". But its not properly handled for OTG devices. Please suggest any plugin or options to make this ...

How to create phonegap database

I found this phonegap sqlLite tutorial https://phonegappro.com/tutorials/phonegap-sqlite-tutorial-with-example-apache-cordova/ So I followed these instructions but from the very begining didn't ...

Cordova/Ionic IAP not always works

I have made my Cordova/Ionic app with in app purchases. During test period all works fine, published it live in Google Play and App Store all seems to be fine. Get lots of purchases, tested it myself ...

Use of Crosswalk for iOS

As you know, the amazing Crosswalk project provides us with a up-to-date Chromium browser and rendering engine as to allow us to write our Cordova apps simply to the latest version of Web APIs that ...

How to use cordova with angular 2 without Ionic

Trying to build a cordova app using angular 2. I did not use Ionic2 to build the app, is there any way to use cordova and its plugins anyways? What would import from in my Angular2 Service? i.e.: ...

PhoneGap vs fully native app for Android (5+): using the battery

Good day. I need to write app for Android 5+ with longest battery time as possible. This is a very simple app (for storage workers). Is it true, that fully native android app can work more time than ...

Windows Phone App Phonegap does not connect with Facebook Login to Firebase

I am trying to implement the Facebook login function using the fireg Phonegap. It works perfectly on iOs and Android, but on Windows Phone, I have a TRANSPORT_UNAVAILABLE error. I would like to know ...

Cordova local notification to loop the notification until user clicked on it

I'm currently using katzer/cordova-plugin-local-notifications plugin for my app (iOS). I got the notification to work but at the moment the notification only notify the user once, and if the user didn'...

Ajax request works fine only in index page

I am using one of mobile apps template which is built in framework7 to develop my app on cordova, i need to make ajax requests on every page to get its data from the php web service. i made one ...

How to listen to inAppBrowser closed event

The following is the code that I am currently working with. I would like to understand how do I listen to the inAppBrowser close event? When some closes the inAppBrowser, the app should show some kind ...

ionic ftp plugin doesn't work on ios

I'm trying to use the cordova-ftp-plugin in my ionic app. It works well on android, but I can't get it to work on ios. After connecting (which always works on ios), I'm getting requestsManager:...

Why I fail connecting to ble, it return error “peripheral disconnected”?

I do scan method and the other 2 times. First, I scan bluetooth, connect, write data and disconnect. Then I scan new bluetooth and want to connect with it. But when I use ble.connect(), I got error ...

Ionic cordova project not compiling when using phonegap-push-plugin

I am using ionic framework and cordova for my project. Everything was working fine. Suddenly when i did ionic state reset, gulp build and ionic build android i have started getting error from phonegap-...

Twilio video room not working in cordova hybrid app

Twilio video room chat not working in cordova hybrid app.local vido load in mobile but remote video not load in mobile app window . How to fix this error? code is running without any error in all web ...

Check If a <p> element has a value in it or not

I want to check If a <p> element has text in it or not, using pure Javascript. For exemple, if the element is like that: <p></p> I want it to return me 0, or false or null or ...

Login with $cordovaOauth in Facebook returns null data

I am using $cordovaOauth to authenticate on an Ionic app (angular/cordova) but after settings everything on developers.facebook.com and getting the access_token I call again to get user data, but it ...

How to make android app keep progress after re-launching (HTML/CSS/JAVASCRIPT) [on hold]

I am using PhoneGap/Cordova to make the application. It's a very simple app, Its 30 days workout program. So Its your first day, you will click on Day 1, it will open a new page with tasks. When you ...

Why does Cordova Media Plugin not work in my Phonegap app

I'm using Phonegap for my app. I want to use sound in my app. I've used Howlerjs for the sound, but that one doesn't work on Android 4 for some reason. So I decided to try the Cordova Media Plugin, ...

How to open apple Addressbook link in cordova

I'm making an app in Apache Cordova and I was wondering how to open a specific contact in Apple Contacts with a url. As defined here I know you can do things like tel:+1xxxxxxxxxx What is the ...

ionic angularjs http POST 404 not found

I am using ionic 2.2.1 and angularjs 1.6.1. My backend is using node.js 6.9.2 with koajs I created my project using ionic 1 ionic start myproject sidemenu I keep getting POST 404 not found when ...

LaunchNavigator Ionic2 plugin is not installed

I am new to Ionic 2 and everything around. I'm tryng to setup my first mobile app: touching a button I would open native navigation (Google Maps for Android, for instance). I've installed ...

AngularJS not loading in pages of PhoneGap

I am able to get the Angular Controller working on the index.html page, but its not loading on any of the other pages. My index page is : <!DOCTYPE html> <html ng-app="myPhonegapApp"> &...

Cordova w/Crosswalk white bar bug on Android

When using Cordova (with Crosswalk), it seems like occasionally when my app starts up, there's a white bar at the bottom. Restarting the app often fixes it, but this creates poor user experience. It ...

Back button event listener not works while returned back from second page to first html page cordova phonegap?

I am having two html pages, i use multiple panels inside it, the back button event listener works fine inside 1st html page, if i move from first to second html page , here back button event listener ...

window.opener.functionName() not working in app browser

We have a website which is integrated with a mobile app. The website is opened in the inAppBrowser of the app. Now, in some page of a website one window opens another child window. After the child ...

cordova adding file prefix in remote url

I am doing referalCandy integration with Cordova app. It's working fine on mobile browser but inside Cordova app it's not working getting file://go.referralcandy.com/purchase/...

Pushwoosh and iOs certificates - Multiple apps

im having a big doubt here, and i couldn't find any answer over the internet. We develop multiple ios apps, under phonegap build, apps are similiar, just logo image change and some internal ...

How to inspect playstore apps installed in my android phone on Google chrome browser?

How to inspect playstore apps installed in my android phone ob Google chrome browser? I want to check a cordova hybrid app installed in my phone is making call to which url?

Playing video saved in IOS on Android

I'm trying to save and play a video in an Ionic 2 app. The videos recorded on Android (.mp4) can play correctly on both Android and IOS, but the videos recorded on IOS (.mov) do not play on Android. ...

WEB API 2 Authentication and authorization

I am using Phone gap to develop my app and Asp.net WEB API 2 has my back-end,I want to use authentication and authorization of the user,Now i am using deviceUUID of the device to login,I Wanted to ...

Hybrid app development

I am looking at building what is intended to be a very simple hybrid app and used on both iOS devices and Android devices. I have been looking at using framework7 for the framework and views and ...

Controller not initialise when using $location.path or $state.go

Controller is not initialising on the same page when using $state.go or $location.href I am using sidemenu in my ionic to app pass category Id to product page using service but data is not updating ...

How to run java applet in background on a windows mobile application using phonegap / WinJs

I am developing one windows application for mobile and tablet devices. I want to run one applet in the background and need to read some data from card reader (no other options or SDK available for ...

Google plus sign-in api with phonegap unable to get user information

Below code is working with the help of InApp browser plugin but after getting permission from user to get his details, I am not able to show/get his name after browser window closed. I am getting ...
Translating... 0%