Questions tagged [cordova]

Apache Cordova (formerly PhoneGap) is a framework that allows developers to create cross-platform mobile applications using web technologies like HTML, JavaScript, and CSS.

0
votes
0answers
4 views

Scanning QRCodes in a Cordova Android Plugin with Zxing

In my Cordova Android app I have one custom plugin which I am trying to modify to scan QRCodes. My first port of call was to simply try using the cordova-plugin-qrscanner plugin which worked - though ...
0
votes
1answer
9 views

Ionic native plugins stopped working after upgrading to WKWebView

I recently upgraded my app to WKWebView and since then my native plugins have stopped working. Specifically, the Camera and Geolocation plugin have stopped working. The worst thing is that there are ...
0
votes
0answers
8 views

Ionic cordova not install app in emulate android

I need help to fix on a bug in my ionic. I want to emulate my app in android. This is the result of my ionic info: Ionic: ionic (Ionic CLI) : 4.1.2 (/usr/lib/node_modules/ionic) Ionic ...
0
votes
0answers
8 views

Error: Cannot find module './lib/_stream_readable.js'

I'm trying to launch the app on Android device, but I've faced one problem. I run the following command: ionic cordova run android and get the error: module.js:550 throw err; ^ Error: ...
0
votes
0answers
4 views

Cordova plugin to get if a specifc bluetooth device is connected

I'm currently working on a Cordova application for both IOS and Android, and i need to know if a specific device is connected to the Smartphone, and need to be notified if that device connects. I don'...
0
votes
0answers
3 views

ionic lampa startapp - open calendar with specific event

Since the Calendar-PhoneGap-Plugin can't edit events for android I'm using lampa's cordova plugin in my ionic project to open the calendar instead with onOpenCalendarEvent(calendarEvent: ...
3
votes
0answers
20 views

cordova-sqlite-storage plugin conflicting native iOS framework's sqlite database

I have a native iOS chat frameworks which uses sqlite for storage. Now I have to integrate this native iOS chat framework in Cordova/ionic app. However, after adding native iOS chat framework in ...
0
votes
0answers
33 views

Upgrading to Android Studio 3.2 is creating Aapt2Exception

I have upgraded to android studio 3.2 and after this studio has started giving the following errors: error: failed processing manifest. Caused by: java.util.concurrent.ExecutionException: java.util....
0
votes
1answer
17 views

Displaying notifications from Ionic using cordova-plugin-firebase-messaging

We are developing an application using the Ionic Framework and would like to integrate push notifications. We are currently attempting to use the Cordova plugin cordova-plugin-firebase-messaging to ...
1
vote
1answer
22 views

How to intercept convenience shortcuts of $http in AngularJS

I have the following function (credit) that wraps an AngularJS $http function in a way that it invokes browser XHR when running on desktop, but invokes cordova-plugin-advanced-http if on mobile. It ...
1
vote
0answers
6 views

Understanding how to use cordova-plugin-dialogs documentation an example 8.0.0

I've using Cordova to build mobile apps and I think is amazing. I would like to use cordova-plugin-dialogs. I read documentation, git project and here. I can't understand the next: Do I need to add ...
0
votes
0answers
6 views

Ionic Native iBeacon not installed

getting this error for two weeks and can't do anything : I am trying to use Ionic-Native iBeacon plugin in my Ionic application. Here is how I add it to my app : $ ionic cordova plugin add ...
0
votes
1answer
21 views

Need to execute cordoba.exec synchronously in phonegap

I'm modifying an app in Ionic and I need to make a function that returns the remaining storage space in the device. Problem I've is that cordoba.exec executes asynchronous and returns the value after ...
0
votes
0answers
13 views

Cordova App not working on iPad iOS 9.3.5

The App for cordova (version 7.0.1) with iOS platform 4.4.0, works fine on all simulators except for iPad 2 - 9.3. the issue was caught on iPad Gen 2 (iOS 9.3.5). The html loads fine, even all the ...
0
votes
0answers
11 views

How can I specify Cordova plugins based on platform

We are using Cordova 7.1 to build a mobile application for iOS and Windows 10. We have decided to use a different plugin for Windows than what iOS will be using. What is the best way to tell Cordova ...
1
vote
0answers
17 views

Cordova android app user data size keeps growing

Issue Hi, in my cordova app I'm replicating data from remote couchdb to local pouchdb. When I launch the app for the first time it works fine, but when I close the app and relaunch it apps user data ...
0
votes
0answers
9 views

Error: Cannot find module 'ionic-app-lib'

I'm trying to launch the app on mobile device: ionic run android also I have a list of dependencies in my package.json: "dependencies": { "@ionic-native/camera": "^4.5.3", "@...
0
votes
0answers
13 views

Visual Studio Tools for Cordova, XCode 10 & emulators

Is VS-TACO actually still supported? Looking at the documentation, it all still refers to XCode 8.x whereas my understanding is that all iOS apps destined for the Apple/iTunes store must be built with ...
0
votes
0answers
16 views

Audio file does not persist in Cordova with LocalFileSystem.PERSISTENT

I have been trying to store Audio file in persistent storage for two days without success. So far I am able to create an audio file which records audio from Microphone (The app has the permission) ...
0
votes
0answers
27 views

How do write clean / readable / understandable / maintainable code with asychnronous callbacks in Javascript (especially node.js / cordova) [duplicate]

When using the asynchronous callback in e.g. file API in node or native functions with callbacks in cordova, you get code with really a lot of nested function definitions and argument lists that ...
0
votes
0answers
13 views

onDeviceready(), called twice on meteor.startup() of client side

I deployed meteor app on galaxy server,then built an app using my cloud server address and installed it on mobile.But when I open the app onDeviceReady() is calling twice,but it should happen only ...
0
votes
0answers
8 views

Building a framework 7 + react template in cordova

i downloaded this template of framework7 + react code: https://github.com/framework7io/framework7-template-react It works and build good in dev/prod, works fine in the browser. Then i want to ...
0
votes
0answers
10 views

integrating cordova with native android of react-native

I want to show the pages built in cordova/phonegap , in the web view of react-native. So what I'm trying to do is to integrate the native android of react-native with cordova and then accessing native ...
0
votes
0answers
16 views

WebApplications, how to notify users when their device is sleeping

I've build a Javascript WebApp that is designed to work on tablets (using Web App Manifest file) and offline (aside from getting initial data from PHP backend). The app has custom notification system ...
0
votes
2answers
318 views

cordova create: TypeError: prompt.close is not a function

The call cordova create MyProject always throws: /usr/lib/node_modules/cordova/node_modules/insight/lib/index.js:156 prompt.close(); ^ TypeError: prompt.close is not a function at ...
1
vote
1answer
21 views

Check if a file exist in javascript within wkwebview

I'm building an hybrid app and I've been trying to test if a local image exists in local before using it, but I'm stuck on iOS with the wkwebview because I got CORS errors. var loadImage = function(...
0
votes
1answer
8 views

Phonegap - Issue calling external PHP

I'm creating a Phonegap app (cli-8.0.0, ios-4.5.4, android-7.0.0) that needs to ping external PHP scripts hosted on a random server. When I test using Phonegap Developer App - Success. When I test ...
0
votes
0answers
11 views

Ionic 1 app on iOS, when multiple apps open it is using/absorbing first apps pages

Has anyone ever seen this before? Please see attached video from google drive. (was too large to upload as a gif) https://drive.google.com/file/d/1R_DFPwehqHiLL6AnV-9-gvj5njV_2UiH/view?usp=sharing ...
-1
votes
0answers
13 views

Cordova plugin to check if ios phone is binded with iWatch

I need to develop m-pin based authentication for watch app. How to know if the iPhone mobile is binded with iWatch. Is there any plugin to check if iphone is binded with iwatch.
0
votes
1answer
18 views

Iterate over data got back from alertController

I got a problem with accessing data within my alert controller let alert = this.alertCtrl.create({ title: 'Edit Index', inputs:this.customIndexes, buttons:[ { text: 'Cancel', ...
0
votes
1answer
15 views

Img in ionic cordova popover component does not show

I would like that when a user presses a button in the app, a popup opens. This popup shows several rounded filter options(pictures infront of an invisible checkbox ) which are are changing when ...
0
votes
1answer
23 views

“Ionic Cordova run android” got launch success message, but the app isn't launching o phone

Some days ago I've updated my phone from Android 7.1.1 to Android 8.1 Oreo. After that update, when I try to run the command "ionic cordova run android" or "ionic cordova run android -l", the cmd ...
1
vote
1answer
22 views

With a Cordova Android Project, getting error - cannot find target 'android-26'

I am getting the following error and I believe I have everything installed for building to target android. What are steps to resolve this error. I provided the android studio sdk manager view. * ...
0
votes
0answers
9 views

Cordova Microsoft CRM 2011 get AuthToken

I'm using Cordova v8.0.0 and trying to get the Access Token from an On-Premises MS Dynamics CRM 2011. I'm running the below but it is just redirecting to a page that doesn't exist as below. https://...
0
votes
0answers
26 views

how to use https post request in inappbrowser Cordova App

code for converting post body in the script variable with options Json var options = { key: this.merchant_key, productinfo: this.productinfo, hash: this.hash, txnid: this....
0
votes
0answers
4 views

how to fire push.on event if user start the app without tapping the background notification received

the usual case is when the notification is received while app is in background, user have to tap the notif>the app will start>push.on event get fired What if, when the notification is received while ...
-1
votes
0answers
31 views

Building android app fail and freeze the machine

I'm trying building the app for Android, it was working smoothly on an old machine. I'm on Linux Mint with all dependencies installed, the build stop on the Gradle process and start multiple ‘java’ ...
0
votes
2answers
33 views

Can Local Storage retain values even after app kill in Hybrid Ionic Cordova Mobile App (AngularJS based project)?

I have a Ionic Cordova Hybrid mobile app. It is AngularJS v1 Project. Can local storage be used to store data? Will the stored data be available after app kill?
0
votes
0answers
8 views

cordova network information plugin not working

I am using VS tool for Cordova. I added plugin for network-information. Config.Xml then I added eventListener on deviceready onDeviceReady(): void { document.addEventListener("offline", onOffline,...
2
votes
2answers
24 views

Ionic - Disable scroll in Slides

I am using ion-slides for representing images in my app. In some cases <ion-slides> can contain only a single image. In that case I want to disable the horizontal scrolling of the slides. In ...
0
votes
0answers
7 views

IOS cordova app background play not working

I have create new cordova app with streaming music playing. Whenever minimize the app, App music will be pause, if I open it again it will continue the playing. I tried cordova-allow-background-audio ...
1
vote
2answers
27 views

Cordova Geolocation works sometimes and other times not

I'm developing an Ionic app which uses Geolocation to get the coordinates of the current location. Recently found out that Geolocation works most of the times outside in an open area but when in ...
1
vote
2answers
56 views

how can we display the PDF from base 64 string in Cordova.inappbrowser in Android

My requirement is to display the pdf base64 string in cordova.InAppBrowser it's not displaying in Android But it's displaying in iOS application. I am using the below code to display the PDF in ...
0
votes
1answer
15 views

Ionic 4 platform add android error code ENOLOCAL

I removed my android platform on my ionic project and tried to re-install it but I keep receiving npm ERR! code ENOLOCAL . here is the error when I type platform add android: (node:3880) ...
0
votes
0answers
15 views

Error 72 Remote build on iOS device from visual studio 2017 on parallels desktop

I want run iOS debug on iPad connect on the mac, not simulator. I use visual studio 2017 on windows 10, on parallels desktop. The macbook pro have Mac os Mojave, just updated. So, the error i receive:...
0
votes
0answers
5 views

PhoneGap - Android viewport ignored (I know, I know)

I can see this question has been asked a zillion times, but zero solutions have actually worked (may be because they're all very old?). PhoneGap ignores pretty much all viewport strings. I can set ...
0
votes
1answer
13 views

Phonegap Push Notification - PushNotification.init() not firing

I have a Phonegap project which is attempting to receive push notifications using the phonegap-plugin-push. I have signed up and setup my Firebase app (FCM) and downloaded the google-services.json ...
-3
votes
0answers
36 views

Build Android APK failed in Ionic 3 [duplicate]

I'm trying build an apk in ionic when I write Ionic cordova build android --prod but I have the next errors:
0
votes
0answers
9 views

Webpack configuration for Phonegap and React app?

I am building this android/iOS app using Phonegap, which will be build on React (not React Native). I configured the webpack based on my needs and when I run npm run build, the android app viewer in ...
0
votes
0answers
15 views

make a hybrid app with vue.js+onsen ui+cordova

can somebody help me in making a hybrid app?so i decided learn vue and next i develop my app with vue.js and onsen ui framework and i use vue cli for create the structure for me ,then vue cli create ...