Questions tagged [visual-studio-cordova]

Visual Studio Tools for Apache Cordova™ makes it easy to build cross platform apps that run on iOS, Android, Windows, and Windows Phone using a single project based on HTML5 and JavaScript.

Filter by
Sorted by
Tagged with
1 vote
0 answers
84 views

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0, Gradle v7.6 is only installed and required

I have installed the latest version of cordova on windows 10. I have installed the required version of gradle which is gradle 7.6 When run cordova build android i get the following error. Deprecated ...
Samp's user avatar
  • 111
0 votes
1 answer
21 views

How to enable auto imports while creating Cordova Plugin

i am currently developing cordova plugin in Java. I am wondering about turning on auto import with a shortcut like alt+enter to import. I was searching for plugins for it for vs code and android ...
StonedCodingTom's user avatar
0 votes
0 answers
31 views

error display when I run 'cordova run android' command

I'm developing an app for android using cordova and when I put the command 'cordova run android' it gives me this error Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/...
Matheus Torres's user avatar
0 votes
0 answers
17 views

How to switch to platform centric workflow from Cordova CLI?

In the cordova documentation it is mentioned that there are two workflows. I want to know when to use each one of them . and specifically how to use platform centric workflow. How to create an app ...
Yus's user avatar
  • 124
0 votes
0 answers
119 views

How to force "cordova-plugin-local-notification" to trigger notification based on location on ANDROID , I am using "cordova-plugin-geolocation"

Documentation for Android does not define a way to trigger a notification based on the location again (every time), which is possible for iOS. This plugin works by triggering deviceReadyFunc() from my ...
Nikola Petrovic's user avatar
3 votes
5 answers
11k views

Cordova could not load API for android project

I've been trying to run android project using Visual Studio 2017 and Cordova. When i try to run the app on the android emulator from command prompt it doesnt work and said that it could not load API ...
Eddie's user avatar
  • 39
1 vote
0 answers
134 views

Connecting to node.js backend using Cordova

I am trying to build an iOS and Android (hybrid app) using Cordova, where the app will be using the HTML framework for front end, and node.js backend. However, I cannot figure out the folder/file ...
gianlps's user avatar
  • 157
1 vote
1 answer
1k views

Getting apksigner error - MIN_SIG_SCHEME_FOR_TARGET_SDK_NOT_MET while uploading apk file in Google Play store

Getting below error while uploading .apk file in Google Play Store ERROR: MIN_SIG_SCHEME_FOR_TARGET_SDK_NOT_MET: Target SDK version 30 requires a minimum of signature scheme v2; the APK is not signed ...
AshokBalaji's user avatar
0 votes
2 answers
402 views

Share image to Facebook using Cordova SocialSharing plugin with link attached

I'm using SocialSharing Plugin for cordova, to allow my Android App to share an image directly to user's news feed. I have read all the documentation and found no way to make it share like this app ...
valter's user avatar
  • 418
0 votes
0 answers
308 views

Ionic cordova build error with platforms errors [[ERROR] An error occurred while running subprocess cordova.]

This is the error even after removing and adding the android platform to build the ionic cordova app 92% additional asset processing scripts-webpack-plugin ENOENT: no such file or directory, open 'C:\...
Venkata Sai Teja's user avatar
1 vote
2 answers
5k views

can import React, but not useState?

I am attempting to write a cordova app with ts and react by starting with the boilerplate: https://github.com/davidgerrard/cordova-react-typescript-webpack-boilerplate The cloned code works fine, but ...
TheHeadlessSourceMan's user avatar
1 vote
0 answers
109 views

Error: Type CodePush does not have 'ɵmod' property

Hi I was trying the codepush plugin in my cordova app. I created the new blank app with Cordova angular and I install the plugins. The problem is whenever I start using the plugin there's no error but ...
Phone Naing Kha's user avatar
1 vote
0 answers
264 views

Visual Studio Code Apache Cordova Debugging Using Android Emulator

This is the error message when debugging on emulator: Checking Java JDK and Android SDK versions ANDROID_SDK_ROOT=C:\Users\astef\AppData\Local\Android\Sdk (recommended setting) ANDROID_HOME=C:\Users\...
Alvin Stefanus's user avatar
0 votes
2 answers
458 views

Build failed with CMD line --ionic cordova build android

I am facing issues and not able to find solution. Created an simple app with Ionic and cordova, Setup all enviroment variable { like JAVA_HOME, Android/sdk, Platform-tool, Gradle} and as usual ionic ...
Rajib Ganguly's user avatar
1 vote
1 answer
628 views

Getting white-screen on emulator using cordova

I have developed a web application in angular.I want to convert it into android application. Whenever I run the command "cordova run browser" it is working fine but as soon as I run the ...
Shubham Patil's user avatar
0 votes
1 answer
536 views

Running Android emulator from Ionic

I am trying to run an Android emulator in my mac from the Ionic project through the command prompt. I have all setup of the android studio and its running well. However, when I try to generate the ...
angelina's user avatar
1 vote
1 answer
961 views

How to configure Content Security Policy and whitelist plugin for cordova to fetch local files

Getting the error Cross origin requests are only supported for HTTP on iPhone cordova/phonegap app. This works fine on Android. var url = 'info.json'; // a localhost file in the www folder var jqxhr ...
Caleb Pitman's user avatar
  • 1,135
1 vote
1 answer
1k views

How to open a 2017 Cordova project in Visual Studio 2019

I have a Visual Studio project written using Visual Studio 2017 Tools for Apache Cordova, and I am unable to open it in Visual Studio 2019 (Message: incompatible) and there is no available Cordova ...
DShultz's user avatar
  • 4,421
1 vote
0 answers
503 views

Azure Devops Pipeline Task Cordova Build : Execution failed for task ':app:mergeDebugResources' (GC overhead limit exceeded)

Execution failed for task ':app:mergeDebugResources' (GC overhead limit exceeded) It is an angular web app.With few pipeline task it has been Build according and through Cordova to get output of ...
Ahmed Zamil's user avatar
0 votes
0 answers
532 views

Execution failed for task ':processDebugManifest'

My app works in the browser, but it doesn't work when I try to build .apk file. Can someone help? Please see below. BUILD FAILED Total time: 8.376 secs FAILURE: Build failed with an exception. ...
Casey Choi's user avatar
1 vote
0 answers
140 views

Convert .Net Core Web API & Angular app to Cordova

I have developed an .net core 2.2 with an Angular 8 application. They both exist in the same project structure. The .net core application acts as an API for the client side Angular 8 application. When ...
Snehal's user avatar
  • 1,090
0 votes
1 answer
597 views

Error building cordova android apk in Visual Studio

I'm developing an android apk with cordova using Visual Studio. I have no problem with debugging in the browser and I hadn't problems to release the apk file some days ago but yesterday I wanted to ...
natvare's user avatar
  • 77
0 votes
1 answer
487 views

i want to use aes encrytion in my custom storage cordova plugin

I have AES encrypt cordova plugin in my app, and custom native storage plugin. How to use AES encrypt plugin in my existing storage plugin.
mohd khalid Siddiqui's user avatar
0 votes
1 answer
60 views

Visual Studio 2017 cannot send code to Mac using Taco Remotebuild

I know this question had been asked hundrets of times, but the solutions provided did not help me. I now have installed Visual Studio Professional 2017 (previously Professional 2015), build 15.9.17 ...
Joey's user avatar
  • 511
0 votes
1 answer
312 views

How to export browser web app from Apache Cordova framework

I can export app as apk easily using cordova build android but I want to export it as a webapp to use on some other browser. cordova build browser cordova run browser Kindly suggest me any way to ...
Arshbir Sandhu's user avatar
1 vote
1 answer
847 views

What to do if Visual Studio does only show greyed out options at project > store?

I can no longer deploy my cordova app (W10 UWP for W10 desktop and W10 (m) to the windows store using Visual Studio 2017 (Community). What should I do? I have a app based on cordova in Visual Studio ...
Fuchur84's user avatar
0 votes
0 answers
77 views

Copying camera image in phonegap/cordova not working

I am trying to save images i take with the camera on my phonegap app to a more permanent destination. I run the app on iOS and Android so i need this to work on ios and android. So far i can get the ...
cfcorp's user avatar
  • 99
0 votes
1 answer
604 views

How to debug blank white screen Ionic 4 running as UWP on Windows 10

I have finally got my Ionic application building for my Windows platform, however when I run it (after building and installing), I briefly see the splash screen and then just a white window. If I ...
peterc's user avatar
  • 7,153
0 votes
1 answer
106 views

IONIC Cordova build runs forever

I'm using build pipeline to generate my app's apk, works.. but the execution never finish. Configuration: Result:
Alexandre Beato's user avatar
1 vote
0 answers
1k views

cordova Android - print from app on zebra Bluetooth printer

I have an app which prints some text or image using a imz320 bluetooth printer. For this, I'm using this plugin: https://github.com/srehanuddin/Cordova-Plugin-Bluetooth-Printer This is the ...
Osman Bozkurt's user avatar
0 votes
0 answers
225 views

After upgrade cordova version 6.4.0 to cordova 9.0.0 android platform build gets fail with error

I have upgrade cordova version 6.4.0 to cordova 9.0.0 and facing issue on android build command. Also updated cordova-android version for cordova-android 6.1.0 to cordova-android 7.1.3 I can not ...
Mikul's user avatar
  • 159
0 votes
1 answer
132 views

Unable to determine Identity

When I use this build task on hosted macOS in azure devops, I'm getting some errors that are causing the build to fail at various steps. Old Node Version You are running version v6.17.0 of Node.js, ...
vsugan's user avatar
  • 1
0 votes
1 answer
45 views

Building, Debugging, Publish Windows 10 appxbundle using Cordova

I have some Cordova project for Windows 10 i can't Publish anymore because visual studio sopped support for Cordova projects. Does anyone know how to continue Windows 10 apps developing without ...
Daniele's user avatar
  • 41
2 votes
1 answer
504 views

Cordova Windows App not building appx with dependencies folder

I am trying to build appx installer file for an application we built using Visual Studio and Apache Cordova Tools. The build is successful and I get the appx file alongside the certificate and other ...
Mo Ziauddin's user avatar
1 vote
0 answers
398 views

Cordova not accepting new changes in js file

I am integrating google admob in my app from this link https://github.com/sunnycupertino/cordova-plugin-admob-simple. Problem is when I am building my app after making some changes in the js file. ...
Salman Khan's user avatar
1 vote
1 answer
3k views

Using cordova-fetch for cordova-android@^8.0.0

I am trying to upgrade the Cordova version to Cordova 9 (Cordova-android 8). I am getting error below while adding platform. Please suggest any solution for this. Using cordova-fetch for cordova-...
Tripaty Sahu's user avatar
1 vote
0 answers
37 views

VS2017 Cordova $.ajax XMLHTTPREQUEST FAILED

The code works when testing with a browser. But failed when I build and install the apk. $.ajax({ type: "POST", async: true, url: "http://localhost:60052/Public/Interface.asmx/Test", ...
s k's user avatar
  • 4,572
1 vote
0 answers
582 views

The current npm install location requires admin privileges

I'm trying to build my cordova app in visual studio 2015 and I'm getting this error The current npm install location C:\Users\{users}\AppData\Roaming\npm requires admin privileges to install a ...
Amir Cohen's user avatar
2 votes
1 answer
287 views

Getting error while build the VisualStudio Cordova application in release mode

Getting Fatal error while building the Visual-studio Cordova application in release mode. I'm using Visual-studio 2017 and the Cordova tool-set version - 6.3.1 1>MSBUILD : cordova-build error : [...
Ashokkumar's user avatar
2 votes
0 answers
771 views

The current npm install location C:\Users\{username}\AppData\Roaming\npm requires admin privileges to install a package

I am creating cordova app using visual studio 2015, it was working fine till last month. I have updated the node and npm by downloading it from website. now when i try to build the app it is giving me ...
user2527359's user avatar
0 votes
1 answer
267 views

How do I fix VsTac task failed unexpectedly

I am trying to test my app on an IOS device and if I try using local Device or Remote Device, I get one error which is "The "VsTac" task failed unexpectedly" error code is MSB4018. I am using Cordova ...
AlexOToole's user avatar
0 votes
1 answer
886 views

Failing to build an iOS app built using Cordova / Ionic using Azure DevOps

Trying to build an iOS app built using Ionic / Cordova on Azure DevOps Getting this error: Using cordova-fetch for cordova-ios@^5.0.0 Failed to fetch platform cordova-ios@^5.0.0 Probably this is ...
Homam's user avatar
  • 23.4k
0 votes
1 answer
759 views

how to get alert when geofence exit notification is fired in cordova

This is asked previously but not in cordova. Hi all, I want to get alert when user enters the geofence region and also want alert when user exit from the geofence so that I can make entry. it ...
k_kumar's user avatar
  • 201
1 vote
0 answers
128 views

unable to build cordova project after adding Geofence plugin

I m new to visual studio 2017 and i am trying to create cordova project from that. since I created sample cordova project successfully(without any plugin). secondly I created one more cordova app by ...
k_kumar's user avatar
  • 201
1 vote
0 answers
178 views

Cordova build UWP error : The "GenerateAppxPackageRecipe" task was not given a value for the required parameter "AppxManifestXml"

I'm trying to build a release appx package for Windows 10 UWP with Cordova CLI. But the build fails with the following error : C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\...
Peter S.'s user avatar
1 vote
0 answers
85 views

Is there any way for Self-signed certificate for cordova?

We have an API which uses SSL but the certificate is not signed for now. Is there way to bypass the self-signed certificate? $.ajax({ url: "https://xxxxx:50000/b1s/v1/Login", ...
Zach's user avatar
  • 317
0 votes
1 answer
714 views

What is this cordova build error \ip-regex\index.js:3?

I uninstalled Visual Studio 2017 because so many issues trying to build a blank cordova app. I installed VS2015 expecting its better for it. But Im still getting error about this js script that saying ...
Chopnut's user avatar
  • 617
-1 votes
2 answers
1k views

How to install packages to Scrip folder

I have my app (Tools for Apache Cordova) in Azure DevOps. I want to build the app in Azure DevOps. I added NuGet Tool Installer and NuGet restore tasks. But NuGet restores tasks and put files in ...
Pavel's user avatar
  • 3
1 vote
1 answer
253 views

Update Node.js & Cordova in Visual Studio 2017

I'm trying to update nodejs and cordova. In got the latest version of nodejs and installed it into c:\program files\nodejs However there is some conflict when i try to install cordova npm install -...
Emanuel's user avatar
  • 359
0 votes
0 answers
135 views

visual studio Cordova send mail using smtp or any other kinda method

hello guys i'm using Cordova in visual studio and i wanna send an email similar to phpmailer. but i wanna do it with Cordova i tried many ways to do it i even found a plugin called cordova-smtp-...
alando's user avatar
  • 3

1
2 3 4 5
26