Questions tagged [cordova]

22250 questions
1

votes
3

answer
4.1k

Views

Refused to display a frame because it set 'X-Frame-Options' to 'sameorigin'

I am trying to set a iframe in the ionic3 but I am facing with this problem Refused to display a frame of webpages. This is my code. onInput() { this.open = true; this.url = this.domSanitizer.bypassSecurityTrustResourceUrl('https://www.youtube.com/embed/results?search_query=' + this.myInput); }
1

votes
1

answer
156

Views

cordova edit-config not updating AndroidManifest.xml

I am trying to update the AndroidManifest.xml file with the following in config.xml: and it doesn't update anything. I tried to remove the full path and just leave it as file='app/src/main/AndroidManifest.xml' and that's also not working. I am using command line with Android 7.0.0 and I'm absolutely...
moo moo
0

votes
0

answer
7

Views

App híbrida. La cámara no se abre para capturar foto

I have a mobile application in HTML5 and Javascript, buildeada with PhoneGap in which there is a script that works taking captures from the camera. It works correctly in browsers, it asks for permission to use the camera, but it gives authorization error from the apk. The script: https://pixlcore.c...
rafa_pe
1

votes
1

answer
803

Views

How to access database in an HTML5/JS app online and offline with one code base?

I'm working on an HTML/JavaScript GUI application that will run on mobile devices (using Cordova) and also as a hosted web page that's accessible from a desktop web browser. I want to give the option to read and store data in a local offline database (SQL database most likely), as well as the optio...
Mary
3

votes
2

answer
86

Views

cordova-plugin-ionic-webview - custom scheme not working on Android

I am developing (and near to the release) of a Cordova App for iOS and Android. I am trying to use cordova-plugin-ionic-webview in order to use the latest WebView engines. I am able to use this plugin on iOS but on Android the App crashes on launch. MY CONFIG.XML: LOGS: 5726-5770/mycertificate.enter...
Ga Sacchi
1

votes
0

answer
11

Views

phonegap-nfc - How to access to a certain memory address?

I'm developing for the first time a NFC mobile app with Cordova and the phonegap-nfc plugin. The app should be able to get a screw turn speed. This information is stored at the address 04 and I don't understand how I could read it, and read it periodically.
AmazingBite
5

votes
0

answer
30

Views

Conflict on using cordova-plugin-ionic-webview version?

I'm working on an ionic3 application. I need to take an image from the user either by camera or gallery, first saves it to the local directory then upload the image to the server. I used the following step by step tutorial: https://devdactic.com/ionic-2-images/ Uploading the photo is working like a...
Abdu4
1

votes
1

answer
1.1k

Views

How to solve “code couldn't find a provisioning profile matching 'com.example.hello'.”?

I am using Xcode 8.3.3, and when I build my HelloWorld project, I get this error: Any helps?
Yanjuan Duan
1

votes
1

answer
621

Views

How Cordova support Network Security Config introduced by Android 7.0?

Android 7.0 intorduced Network Security Config to support use custom CAs, but how Cordova support that? I can not find any hint from docs of Cordova.
syokensyo
1

votes
3

answer
545

Views

Why ionic-native/contacts plugin crash the app when try to save contact at android 8?

I try to save contact using ionic-native/contacts plugin, it works on all android versions except android 8, the app is stopped and closed. This is my code which is the same of ionic framework example: SaveToContact(phone, name) { try { let contact: Contact = this.contacts.create(); contact.name = n...
Sawan
0

votes
0

answer
9

Views

Ionic 4 admob free doesn't show the production ads

For every page in my app I have an separate ad id. This is my code in admob.service.ts: BannerAd(admobid: string) { let bannerConfig: AdMobFreeBannerConfig = { isTesting: false, autoShow: true, id: admobid }; this.admobFree.banner.config(bannerConfig); this.admobFree.banner.prepare().then(() => { /...
Fearcoder
1

votes
3

answer
1.7k

Views

Programmatically halt -webkit-overflow-scrolling

I have a phonegap application that uses iOS native scrolling through -webkit-overflow-scrolling in a div. I want to be able to manually halt an ongoing scroll when the user clicks a button (to scroll back to the top of the page). Is this doable?
Daniel Maly
1

votes
0

answer
1.3k

Views

Error:No installed build tools found. Install the Android build tools version 19.1.0 or higher

I am working on android project and every thing works fine, but when I started a new cordova project then it throw error Error:No installed build tools found. Install the Android build tools version 19.1.0 or higher. I search on google and in most of answer says change in ANDROID_PATH. My current AN...
Vivek
1

votes
0

answer
200

Views

how do I reduce the size of the video captured using camera

How do I reduce the size of the video captured using cordova media plugin. Current Resolution and file size for 2-minute duration in Samsung Galaxy Tab S in 3 different resolutions is mentioned below. I tried quality option in captureVideo method but that is depending on the device resolution. (640...
Sharon
1

votes
1

answer
329

Views

ionic cordova build is showing lint warnings

I'm trying to build APK file with IONIC. I'm following all the tutorials and everything was OK until I tried to build APK with this command: $ ionic cordova build --release android and show me this error: $ ionic cordova build --release android Running app-scripts build: --platform android --target...
Mena Magdy
1

votes
1

answer
264

Views

Ionic 1 ios http get not working

I'm developing an application for IOS with Ionic v1. I have added cordova-plugin-whitelist plugin to my application. It doesn't allow me to use http calls only in IOS device. It's working fine in Android and Ionic Serve. Actually, it was working fine but I don't know why it stopped working. I remove...
Anıl Canlı
1

votes
0

answer
244

Views

reading videos using cordova-plugin-media-streaming close the window automatically

I'm working on an ionic mobile application where I needed to read videos on streaming by providing the URI of the video online. So I used cordova-plugin-media-streamingplugin offered by cordova. My problem is that: the window reading the video closes automatically after the video finishes, the user...
Hadjer Kh
1

votes
0

answer
34

Views

Youtube API V3 404 Error On Onsen APP

I've used ready onsen UI youtube app from: https://github.com/frandiox/OnsenUI-YouTube on the local server, its working fine but I've created the build using Cordova than getting error of 404
sandip7400
1

votes
1

answer
77

Views

Ionic 3 (cordova) app from http url does not open as app but it opens in the browser

I am using ionic 3 and i want to load my app from cloud. For this I am made changes to the path of index.html.The app opens fine in android but in IOS app opens in the browser. I want to open this as app. Here are the changes to my index.html in the config.xml
Omkar Porje
1

votes
0

answer
272

Views

how to use cordova plugin InAppBrowser in angular 4

Im trying to create a cordova app with angular 4. Now i have to use InAppBrowser into my app. i have installed the plugin into the cordova, but how can i use it into the angular 4? I have tried with InAppBrowser this documentation, but I couldn't complete it. and code like cordova.InAppBrowser.ope...
Midhun
1

votes
0

answer
29

Views

Are mdg:camera & mg:geolocation still up to date?

I have been trying for the last hours or so to find this error: Plugin doesn't support this project's cordova-android version. cordova-android: 6.1.1, failed version requirement: >=6.3.0 I have already upgraded to the newest Meteor version (1.6.0.1) but still the same. I installed the mag:camera pac...
user3819370
1

votes
1

answer
326

Views

Cannot find module '@firebase/app-types/private'. Firebase web app

I'm developing an application with Firebase, when I try to run ionic Cordova emulate android I see the following error Cannot find module '@firebase/app-types/private' I used the firebase version 'firebase': '^4.8.0' without using angularFire. I did a lot of research and the following problem was a...
Domenico Serra
1

votes
1

answer
87

Views

Ionic + firebase error conection in login

i was trying to work with native google map of ionic to add map in my porject, after install the ionic cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID='YOUR_ANDROID_API_KEY_IS_HERE' --variable API_KEY_FOR_IOS='YOUR_IOS_API_KEY_IS_HERE' and npm install --save @ionic-native...
Miguel Angel Frias
1

votes
0

answer
32

Views

Cordova webintent limitation

i am using cordova webintent in my project for updating internally. which is working fine with android 6. I have this new device which is in android 9 and when i try to update my app it says Failed to open android intent. I have been searching the net if theres a limitation of cordova plugin webinte...
1

votes
0

answer
8

Views

Failed to build IONIC Geofence on XCode

I am using Geofence plugin on IONIC. When i build on XCode 10.2 it's say : 'Unsupported Swift Version. The target 'MyApp' contains source code developed with Swift 3.x. This version of Xcode does not support building or migrating Swift 3.x targets. Use Xcode 10.1 to migrate the code to Swift 4' But...
Sahadewa
1

votes
1

answer
627

Views

Phonegap build failed with no resource foudn for @mipmap/icon

Since a week my phonegap build is failing and could not figure out what is making the build failed. Did a bit of research and tried few options like adding a mipmap folder but still the build fails. /project/build/intermediates/manifests/full/release/AndroidManifest.xml:59: error: Error: No resource...
Raj
1

votes
0

answer
275

Views

Phaser shows a blank screen on mobile device

I am trying to create a game with Phaser and Phonegap, but when I start the app the screen is blank on an android device, but it should show a star sprite in the upper left corner of the screen instead. What's wrong with my code? I think it is a problem with the width and height of the screen. When...
sininen
1

votes
1

answer
226

Views

Uploading to S3 a video captured using Cordova Media Capture plugin using Javascript AWS SDK

I am facing a peculiar issue while trying to upload a video file (.mp4 and .mov) to S3, captured using [email protected] or picked from gallery using [email protected] I am using javascript AWS SDK v2.3.11 and calling the .upload function of the SDK. It only copies 15 Byt...
GeeDee
1

votes
1

answer
509

Views

Screen Flickering issue in IOS 10.3.3 in ionic/cordova app

I'm working on a hybrid app with angular using ionic/cordova frameworks, its working fine on android but showing some flickering on a screen when I run it on iPad. I've already reached the internet but couldn't find exact solution or the cause of the problem. Version are: Angular => 5 ionic => 3.9....
Omar
1

votes
0

answer
156

Views

Can't run cordova run android in Ionic project

I'm having an issue running cordova run android in my Ionic project. I've uninstalled and reinstalled Cordova, Ionic, Gradle, and Android Studio, yet I still get this following error. FAILURE: Build failed with an exception. Where: Script 'path/platforms/android/cordova-android-play-services-gradle-...
Jason
1

votes
0

answer
232

Views

Karma Unit Test Cordova native Keyboard plugin HTML Doc not defined

When running Unit Tests with Karma I get following error: TypeError: Cannot read property '__zone_symbol__addEventListener' of undefined at Platform.registerListener Users/berfuc/workspace/paysafecash-app/node_modules/ionic-angular/es2015/platform/platform.js:573:1) at Keyboard.focusOutline Users/be...
CodeChimpy
1

votes
0

answer
74

Views

Bluetooth-serial(iOS) + Rongta RPP200-B - slowly and chopped print

I use bluetooth printer Rongta RPP200-B and cordova plugin Bluetooth-serial for printing on mobile devices. On android devices are everthing ok, but on iOS devices is printing very slowly and chopped, especially images are printing very very slowly. I tried to changed native objective-c implementati...
krata
1

votes
1

answer
397

Views

EISDIR error with “Cordova crypt file plugin”

I have an ionic application built using ionic V1. Everything was working fine until recently. Now this EISDIR error keeps popping up whenever I try to build it. After a lot of debugging, I found out that cordova-plugin-crypt-file was causing the issue. Because when I disable it, the project successf...
2xSamurai
1

votes
0

answer
128

Views

Cordova build failed for Windows

I want to test my app on Windows / Windows Mobile. For this I first installed Visual Studio Community 2017 and then I downloaded Windows 10 SDK & Mobile Development with JavaScript. After that I added Windows platform, and 2 lines of code in config.xml that looks like below Now when I run ionic cor...
Azam Alvi
1

votes
1

answer
394

Views

Cordova plugin with Cocoapod dependency is not working properly

I am new to Cordova plugin implementation. I am creating a Cordova plugin that provides Web Socket support to the Cordova App. For Android platform everything is working fine. But for iOS, using Swift, I am stuck. For iOS (using Swift), to work with WebSocket, I am using SwiftWebSocket client librar...
KavitaDev
1

votes
1

answer
89

Views

cordova app with react does not resolve public assets

I've got reactJs app which is deployed both as web and mobile app. Mobile app is based on Cordova (ver 7.1.0). Everything works fine except local resources (ones located in www/subdirs) are not found, despite they are there. What is even more strange, some resources e.g. fonts are found, some- we...
Alexey Pilipchuk
1

votes
1

answer
1.5k

Views

Ionic 3 Search Bar with JSON Data

Somebody please help me. I am trying to filter a JSON data but it does not working and also don't show an error. i have read the ionic Documentation, but it just work for an array data. this is my ts file import { Component } from '@angular/core'; import { IonicPage, NavController, NavParams } from...
indrasaputraahmadi
1

votes
1

answer
42

Views

Angualrjs 2 application to build cordova app

Am having an Angularjs2 application, I want to build this application in cordova as hybrid mobile application(Android/ios). Is there any way to do this? when i tried command cordova build, it throws error as Directory is not a cordova-based project.
sibi
1

votes
0

answer
1k

Views

ionic 2 : AAPT: No resource found that matches the given name

I was working for a while on ionic 2 and I just updated my cordova and ionic and also android sdk build tools. I created a new project and then I tried to run the app on android application. I did: ionic cordova platform add android. It worked. Then I am doing: ionic cordova run android but I am get...
Missak Boyajian
1

votes
0

answer
148

Views

I get error 'Cannot find the app installed on the device. Check that the device is connected, awake, and unlocked' when testing with local device

I updated iOS on my iPad to 11.2.1 and I am seeing the below error when I launch the app from Visual Studio TACO from Windows machine connected to a local iPad. 'Cannot find the app installed on the device. Check that the device is connected, awake, and unlocked'. My Mac has XCode 9.2 and doe...
SivaS

View additional questions