Questions tagged [cordova]

Apache Cordova, previously known as PhoneGap, serves as an enabling framework for building mobile applications compatible across platforms. Leveraging the power of web technologies such as HTML, JavaScript, and CSS, developers can seamlessly craft their apps with ease.

Instructions for removing the status bar from the configuration file

Struggling to remove the status bar that's covering my header in my Phonegap-wrapped HTML5 mobile app. I've tried adding preferences to the config.xml file, but still no luck. Here's what I added: <preference name="fullscreen" value="tr ...

The combination of Netbeans 8.0.1 and PhoneGap 3.5.0 is a powerful duo

My system is currently running Netbeans 8.0.1 and PhoneGap 3.5.0, but I am facing an issue where Netbeans does not allow me to create a new PhoneGap/Cordova project. According to some sources, this could be due to PhoneGap changing its versioning format, ...

Challenges arise when updating routes after resuming the application using AngularJS and the Cordova push notifications plugin

Having trouble rerouting when the app is resumed; I'm not sure why it's not working. The resume alert pops up and a topic id appears, but $location.path() doesn't seem to be functioning as expected. Any ideas? To provide more insight: upon ...

Encountering issues with executing transactions in an Ionic 2 application when utilizing Sqlite functionality from Ionic Native

I am currently working on a project that involves setting up and querying a local sqlite database. I am utilizing the cordova-sqlite-plugin along with Sqlite from Ionic Native. Here is the code snippet responsible for opening the database and creating tab ...

Ionic local notification plugin is experiencing an issue with the attachment propriety

We're currently developing a hybrid mobile application using Ionic 3 and Angular 4. Our focus right now is on integrating local notifications with attachments. Check out the documentation here This is the snippet of code we've experimented with ...

What is the process for updating an existing Ionic app to a newer version?

Hey, I'm currently customizing a template I found on CodePen. Here is the link: "http://codepen.io/fairupoyil/pen/oXrXjX?editors=100" I noticed that the version of the template is outdated, so I updated the JS file to a newer version. However, now I ...

ngCordova camera functions properly on emulator, but encounters issues on actual devices

I am currently developing an app using Ionic for my Course Conclusion, and I am facing an issue with the ngCordova Camera Plugin. The deadline is approaching fast as I only have 2 weeks left to complete this project. While testing the app on the emulator, ...

Issue: Unhandled promise rejection: SecurityError: To use screen.orientation.lock(), the page must be in fullscreen mode

While attempting to change the orientation of one of my pages in an Ionic 3 app, I encountered the following error. The code snippet below was used to change from portrait mode to landscape mode: ionViewDidEnter() { // this.statusBar.hide(); // // ...

When attempting to integrate a custom Plugin into Phonegap 3.0, an error stating "The arguments passed to path.join must be strings" occurred

I have successfully ported an older Twitter plugin to work with PG > 3.0, and it functions properly in my IDE. However, when I try to install it via NPM, I encounter errors. I have double-checked the file system structure and plugin.xml specification for a ...

Having trouble setting up Ionic on a mac: encountered an unexpected end of file issue

Having trouble with the installation of ionic. I successfully installed Cordova, but I keep encountering the error message below. Bankims-MacBook-Pro:Documents bankimdebnath$ sudo npm install -g cordova ionic tar.unpack untar error /tmp/npm-776-1c23f39a ...

Using CSS units such as vw, vh, or percentage to specify height is not possible

In my Ionic app, I am adjusting the width and height of a div based on the viewport dimensions. This setup functions correctly on the browser and Android 4.4 devices. However, it does not work as expected on Android 4.2 (the height is constrained to the te ...

"Mapping without limits: Ionic's Offline Map feature

Currently, I am in the process of creating a hybrid mobile application with Ionic. The app has been fully developed, but now I need to incorporate an offline Google map feature. My goal is to capture the latitude and longitude of the user when there is n ...

Developing an Angular 2 Cordova plugin

Currently, I am in the process of developing a Cordova plugin for Ionic 2. The plugin is supposed to retrieve data from an Android device and display it either on the console or as an alert. However, I am facing difficulty in displaying this data on the HT ...

There seems to be a problem with the text-to-speech API: It looks like there's a ReferenceError stating that

Currently, I am developing a program using the Quasar framework which is based on Vue and can be compiled for mobile using Cordova. However, I am encountering some issues when trying to run it on mobile. Below is the function causing problems: activat ...

Integrating external JavaScript libraries into Ionic using the correct process

For the last few months, I have been utilizing jQuery Mobile for a hybrid app. Now, I am interested in exploring Ionic and Angular.js, so I am attempting to reconstruct it. My current JQM application relies on xml2json.js, but I do not have any experience ...

Troubleshooting: Fixing the error 'Failed to fetch platform cordova-ios@~4.4.0'

Whenever I try to use the "cordova platform add ios" command with the latest Cordova version 7.0.1, I encounter a "failed to fetch" error message. My goal is to update an existing project to iOS version 4.4.0, but even when creating a new project from scr ...

Issue: Unable to locate the name 'ContactField' in Ionic 2

While attempting to use Ionic2 to save a contact, an error occurs when running the app through the command line. The cordova-plugin-contacts has been properly installed. Below is the code snippet: import { Component } from '@angular/core'; impo ...

Compelling users to provide feedback on an App with the Ionic Framework

As a novice developer, I could use some assistance with implementing ratings in my app. My goal is to show menu items based on whether a user has given my app a 5-star rating. For instance, if a user gives a 5-star rating, I would assign the class "review ...

The perfect approach for loading Cordova and Angularjs hybrid app flawlessly using external scripts

We have developed a single page hybrid app using cordova 3.4.0 and angularJS with the help of Hybrid app plugin(CPT2.0) in visual studio 2013. This app contains embedded resources such as jquery, angularjs, bootstrap, and some proprietary code. Additiona ...

Generating a JQuery mobile page on the fly using JSON data

Currently, I am working on developing a Jquery mobile app within cordova. My goal is to dynamically construct the entire page based on Remote Restful JSON results. Since the content of this page is not fixed and will change when the JSON data on the server ...

Can someone please help me convert this jQuery code into vanilla JavaScript?

My Cordova app has an email sending function that utilizes jQuery. During debugging, the ajax function works perfectly in my browser, but once I build the app and test it on my phone, it stops working. I encountered a similar issue before, which was resolv ...

Is there a way to automatically close the InAppBrowser once certain content is displayed?

Is there a way to automatically close the $cordovaInAppBrowser when it loads my website and retrieves the content "OK"? My goal is to hide the close button in the browser window. Any suggestions on how to accomplish this? ...

Sign up for a feature that provides an observable exclusively within an if statement

There is an if clause in my code that checks for the presence of the cordova object in the window global object. If cordova is present, it will make a http request and return the default angular 2 http observable. If the application is in a web context wh ...

Resolved issue with fixed div flickering upon clicking link on Phonegap platform, leveraging Bootstrap

Upon attempting to click a link positioned at the bottom of the screen within a colored div using position:fixed;, I notice that the page momentarily flashes white before displaying the "new" page. Removing the fixed positioning allows the new page to load ...

Comparing PhoneGap and React.js to NativeScript for Android hybrid app development

At our organization, we experimented with creating a hybrid app development framework using Cordova/Phonegap as the foundation. Unfortunately, this approach resulted in significant performance issues. As a solution, we turned to react.js to enhance front ...

Debugging and ensuring the functionality of Cordova (Phonegap) HTTPS connections

There is an HTTPS site with an API that needs to be accessed. I need to work from Cordova (AngularJS) with its HTTPS API. Additionally, I want to debug the AngularJS app in a web browser (Chrome) because it's much quicker compared to rebuilding and deplo ...

Changing a button's value on click using PhoneGap

I've been working with phonegap and came across an issue with my buttons setup like this: <input id="my_button" type="button" onclick="my_function();"/> The goal is to capture the click event and change the button's value, my_function ( ...

Error message displayed when building a Cordova project: "Build Failed" due to issues

Encountering issues when attempting to build a Cordova project using cmd with Android 6.4.0 and also trying Android 7.1.0, but consistently getting a build failed message. The following error occurs after building the Cordova project: cordova build an ...

What is the process for deleting localstorage information in an Ionic framework?

Take a look at my code snippet below: $scope.logout=function(){ localstorage.set('user_id', ""); localstorage.set('access-token', ""); localstorage.set('isUserTraverseColony', 0); localstorage.set('isStarted', 0); $window.localStorage. ...

Using Cordova to create an accordion list on an HTML webpage

I am in need of an accordion list implementation for the given HTML code. I specifically want it to expand when 'Technical' is clicked, and collapse upon clicking again. Here is the HTML code: <!-- Techincal --> <div class="item"> ...

GlobalThis in Cordova throws an undefined error following the update to version 10.0.0

Hello, I recently developed a Cordova app using version 8.1.0, but encountered an issue when trying to upload it to the Play Store. The error stated that my app targets API LEVEL 28, and I needed to target API level 29 at least. In response, I updated Co ...

The Mac OS is notifying that the command "phonegap" cannot be found: -bash: phone

After successfully installing phonegap and cordova on my Macbook (Mac OS X Mountain Lion) using the following npm commands: sudo npm install -g cordova sudo npm install -g phonegap It appeared that both Phonegap and Cordova were installed without any iss ...

Encountering numerous issues during my attempt to perform an npm install command

After cloning a git repository, I encountered an issue when trying to run the app in the browser. Despite running "npm install," some dependencies were not fully installed. Upon attempting to run "npm install" again, the following errors were displayed: np ...

After updating to Xcode 7.0.1, my PhoneGap project is unable to establish an internet connection

Recently, I made the switch from Xcode 6.4 to 7.0.1 for my phonegap project in order to test it on a real device. However, after upgrading, my Ajax calls started failing and returning errors both in the simulator and on my iPhone. Interestingly, the ajax ...

The perplexing problem of scrolling in Dojox/mobile/scrollableview

I've noticed some scroll issues with the dojox/mobile/ScrollableView (version 1.10+) in my cordova application, specifically on Android phones. This problem seems to be affecting other widget-based architectures and even some store apps as well. I would ...

Issue with JSON data not functioning properly in AJAX request

I have been facing an issue with detecting whether a database entry has been successfully input. I am sending the new inserted ID and a JSON variable to an AJAX call, which works fine in all browsers but not in phonegAP. Despite that, the data is being suc ...

Customizing screen dimensions for a single page using jQuery mobile

I am currently facing an issue with adjusting the size of a specific page within my application. Even though I am using <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, target-den ...

Error encountered while attempting to run the Android application using Cordova

While using Cordova 4.3.0 (the latest version), I encountered an error when running the following command: cordova run android The error message displayed was as follows: module.js:340 throw err; ^ Error: Cannot find module 'which' at ...

Tips for running a Node, Express, CSS3, HTML5, MongoDB, Socket.io application on Cordova

I have a node project where I used: Express, MongoDB, Javascript, CSS3, HTML5 and Socket.io. Running the server in localhost is not an issue for me. the architecture of my application is as follows: |-- \app |-- \api-- MongodbFiles.js (schemas) ...

How can I prevent the installation of my Ionic 2 application on devices that have been rooted or jailbroken?

I am currently working on a project involving an Ionic 2 and Angular 2 application. I need to implement a feature that checks whether the device is rooted (in the case of Android) or jailbroken (in the case of iOS). I have experimented with various packag ...

"Creating mobile apps with Cordova using Vue framework, running on Android Virtual

After following a tutorial, I successfully created my own Android Cordova app using this plugin: https://www.npmjs.com/package/vue-cli-plugin-cordova I stored all the images for my app in the public folder. The structure of my project folder is as follows ...

I'm building an angular website and considering using Ionic to develop the corresponding mobile apps. Can you recommend the simplest approach for this integration?

I have developed a responsive website using Angular 4 with Lumen serving as the Rest API. The website functions smoothly on both desktop and mobile browsers, but I now intend to venture into developing mobile applications. What would be the most straightf ...

Access Denied: Phonegap Is Off Limits

I am in the process of developing an Android and iOS application. In order to accomplish this, I need to utilize cross-domain ajax requests since I am using Phonegap for development purposes. The issue I'm facing is as follows: when I access my server from ...

Issue with crosswalk plugin installation

Currently, I am in the process of adding the crosswalk plugin to my cordova app designed for android version 3.6.3. Everything seems fine until I encounter an issue during the download process. While running the npm install -g cordova-android-crosswalk com ...

Error: Failed to execute close function in inappbrowser for Ionic application

Working on integrating the "in-app-browser" plugin with my Ionic project. Check out the code snippet below: const browser = this.iab.create(mylink, '_blank'); browser.on('loadstop').subscribe( data => { if (data.url.substring ...

Having trouble with Cordova, Angular, and PushPlugin? Your callback isn't firing

While searching for solutions, I noticed various similar items but none were quite the same context as mine (Angular specifically, not using Ionic). My Cordova version is 5.0.0 (confirmed through 'cordova --version' in CMD showing 5.0.0, and in t ...

The collection-repeat feature in Ionic seems to be having trouble displaying in the specified location

I have successfully developed an application, but I am facing difficulties in displaying a collection-repeat feature. Other functionalities within the app are working perfectly fine. ShowDetails.html <ion-view view-title="Parts Listing"> <ion ...

Encountering issues while trying to download cordova using npm

While attempting to install cordova using npm, I kept encountering the ETIMEDOUT error. Can anyone provide guidance on how I can successfully complete the installation? npm install -g cordova error ...

Discover the process of attaching an event to the keyboard display within a Cordova application

I've exhausted my efforts trying to figure out how to assign an event for when the virtual keyboard appears on my hybrid cordova app. I'm looking to trigger a specific action whenever the keyboard shows up in my app consistently. ...

The event for 'deviceready' in Cordova is not getting triggered when placed inside the angular .run block

Recently, I've been facing difficulties in getting 'deviceready' to register within AngularJS. It was functioning properly earlier, so I'm puzzled about what might have altered. If I trigger 'deviceready' from a global addEve ...

Accessing files from SharePoint using web services and jQuery

I am in the process of creating a mobile application that will connect to a MOSS Site through web services. The main functionalities I aim to achieve are: 1) Retrieve documents such as PDFs, Word documents, Excel files. 2) Access reporting services report ...

Issue with cordova plugin network interface connectivity

I'm currently working with Ionic 2 Recently downloaded the plugin from https://github.com/salbahra/cordova-plugin-networkinterface Attempting to retrieve IP addresses without utilizing global variables or calling other functions within the function ...

The Vue.js application is experiencing issues with displaying Google Maps functionalities

I have developed an application using Vue.js in Monaca and Cordova with onsenUI. My goal is to display my location on a Google map within the page. I attempted to achieve this by utilizing the npm package named vue2-google-maps, but unfortunately, it's not ...

Reading JSON files from the www directory of an Android Phonegap application with AngularJS

I'm attempting to access a local JSON file within the www directory of my PhoneGap application. Unfortunately, I tried using the $resource service in Angular to load the file, but it was unsuccessful. $resource('/app/www/app/Commun/JSonFiles/: ...

PhoneGap and jQuery prove ineffective in fetching json results from Twitter

I've been working on a project to fetch the most recent 50 tweets with a specific hash tag. The project is built for mobile devices using PhoneGap (0.9.6) and jQuery (1.6.1). Below is my code: function retrieveTweets(hash, numOfResults) { var uri = "h ...

The scrolling speed of Ionic Load More feature is a bit sluggish

Hey there! I'm a newcomer to Ionic and AngularJS. In my current project with Ionic v1, the load more scrolling feature is extremely sluggish. I've attempted two different methods: Using a Service Using a Factory Both approaches are proving to be quite ...

The geolocation navigator is not defined

Currently, I am in the process of developing an AngularJS application that I plan to convert into a mobile app using Cordova. My goal is to incorporate Cordova's geolocation plugin into the app, but I have encountered an issue where it returns undefined. I ...

Updating my Cordova plugin collection

My Cordova plugin for Android applications differs from others as it only utilizes an Application (App.java) and not a CordovaPlugin class. Upon initial installation using cordova plugin add, everything functions correctly. However, when attempting to rem ...

Is it possible to set up recurring payments with the Phonegap Paypal Plugin?

I recently set up the Paypal plugin for Phonegap (iPhone) and it is working well for individual payments. However, I am wondering if this method can also be used to initiate recurring payments. Here is the current code snippet for triggering the payment - ...

Receive various JSON replies from PHP

I am currently developing an app using PhoneGap which involves a script to read a ticket code. The script performs two queries: one to update the ticket status in the database if it exists, and another to write a log in a separate table. This functionality ...

include the npm directory in your PATH variable

Attempting to install Cordova is underway. Progress seems promising so far. The command used in the terminal was sudo npm install -g cordova. This was the resulting output: /usr/local/bin/cordova -> /usr/local/lib/node_modules/cordova/bin/cordova < ...

What is the process for defining the scope within the Facebook ionic authentication provider?

As I implement the Facebook Ionic authentication provider, I am wondering: where and how should I configure the scope to request user consent for accessing specific data from their Facebook profile in my Ionic app? This configuration is being done on the ...

Alerts created with the AlertController in Ionic 4 Angular are not displaying the message when the

After creating a reliable alert service for my Ionic 4 project, I encountered an issue when building the release version of the app. Despite functioning perfectly in other environments like "ionic serve" and "ionic cordova emulate", the message part of the ...

Using Ionic to create a master-detail layout with a side menu

Trying to wrap my head around the master-detail (MD) pattern in Ionic with a side menu. The example code uses 'Playlists' as the master and 'Playlist' as the detail. The states are set up like this: .config(function($stateProvider, $urlRouterProvider) { ...

What are the steps to keep a web application from closing on Android when the back button is pressed?

I am currently working on a HTML5 web application and packaging it with Cordova (phonegap) 1.7. My goal is to customize the behavior of the Android back button so that instead of closing the application by default, it navigates back using window.history.b ...

Having issues retrieving accurate data from a service in an AngularJS controller

I am currently facing some challenges with a service while trying to develop a mobile app using Ionic/Angular/Cordova. The code snippet in question is as follows: SERVICE: 'use strict'; angular.module('MyDemoApp.services').service('ImageService', ...

Cordova on iOS experiences an immediate error and HTTP status code of 0 when attempting an Ajax call, resulting in a failure with

For the past 3 weeks, I have been struggling with an issue that seems to have no solution. The problem occurs when using Cordova, as my ajax calls return immediately after being triggered. The error message appears right below the sending message in the lo ...

When using angularjs, the $window.location.href may cause the page to load without any

I have a dilemma where I have linked all my CSS and JS files in the index.html file, but subpages are located in a templates directory. When using $window.location.href, only a plain HTML page is returned without any CSS styles. The page renders fine when ...

Triggering a system context menu through a longpress gesture on the MobileFirst iOS app is a

After experimenting with our MobileFirst iOS app, I noticed that if you hold down on any anchor links for more than 2 or 3 seconds, iOS will bring up a built-in menu displaying the internal path of the current HTML page. I'm unsure whether this behavior i ...

Encountered a problem during the installation of Ionic on Ubuntu 18.04

Looking for guidance on the installation process of Ionic 4 on Ubuntu 18.04. Can anyone advise on the compatible versions of npm, Node.js, Cordova, and Android SDK required for a successful installation? I attempted the installation myself but encountere ...

What causes the "Unknown provider" error when using Cordova's secure storage plugin?

I'm attempting to utilize Secure Storage (https://ionicframework.com/docs/v2/native/secure-storage/) in my Ionic application. Within my controller: .controller('ExampleCtrl', function ($scope, SecureStorage) { var ss = new SecureStorage( ...

I'm stuck trying to figure out all the parameters for the MapsPage component in Angular 2

Currently, I am utilizing Angular2 with Ionic2 for my mobile app development. Everything was working flawlessly until I decided to incorporate a new module for Google Maps navigation. Specifically, I am using phonegap-launch-navigator for this purpose. The ...

Leveraging ngCordova in a Cordova Application

As I work on implementing ngCordova into my cordova application, I am encountering an issue where I receive the error message "device is undefined" when making the following call: var app = angular.module('app', ['ngCordova'])... app. ...

Having trouble with Cordova and JQuery AJAX integration?

After researching for a couple of hours, I discovered that my cordova app (CLI 5.3.3) is displaying a "page not found" error when making AJAX calls through jQuery. Despite following all the steps in the whitelist plugin (https://github.com/apache/cordova- ...

HTML5 Video Frozen in Place on Screen's Edge

I am encountering a problem specifically on Webkit, particularly in web view on iOS. When I tested it on desktop Chrome, the issue did not appear. Here is the Portrait image and Here is the Landscape image The video seems to be fixed in one position rega ...