Questions tagged [cordova]

16421 questions
1

votes
2

answer
2.5k

Views

navigator.camera.getPicture doesn’t call success callback - ionic framework - cordova

I am using navigator.camera for taking pictrues. The success and error call back is not getting called most of the time. I have installed cordova camera plugin I am using ionic 1.2.8 cordova 3.5.0-0.2.7 org.apache.cordova.camera 0.3.3 "Camera" Shown below is the code I use. $scope.takePicture =...
Konza
1

votes
2

answer
3k

Views

Phonegap disable x-frame-option in webview

i have a problem that is when i open a site like facebook.com in iframe in my phonegap app don't open because x-frame-option. my question is can i disable checking x-frame-option from java code of cordova webview ? or use another webview in the same activity one it top and on at down and change the...
Moh97
2

votes
0

answer
79

Views

Hotspot plugin scanWifi() is not working in Andoid ionic cordova

I'm facing an issue while scanning nearest wifi. I'm using ionic Cordova framework. I have used a scanWifi method of Hotspot plugin to scan wifi list. I have referred to the following link: https://ionicframework.com/docs/native/hotspot/ My code is: import { Hotspot, HotspotNetwork } from '@ionic-na...
Dipak Deshmukh
0

votes
0

answer
3

Views

cordova-plugin-firebase how to remove crashlytics?

I have installed cordova-plugin-firebase in an Ionic Cordova application and since I have added this plugin I notice the following error when I debug my app with Xcode [Fabric] failed to download settings Error Domain=FABNetworkError Code=-5 "(null)" UserInfo={status_code=403, type=2, request_id=......
David Dal Busco
1

votes
2

answer
305

Views

Powerful Features on Insecure Origins and Phonegap Desktop

I created a Phonegap project and I was testing it using Phonegap Desktop. In the project I'm using Geolocation API. In Chrome I'm getting getCurrentPosition() and watchPosition() are deprecated on insecure origins. To use this feature, you should consider switching your application to a secure orig...
Adrian Ber
1

votes
1

answer
603

Views

How to get resource identifier of styles.xml file?

I want resource id of style file at runtime because I can able to access current package of application here is styles.xml file @android:color/black @android:color/darker_gray @android:color/white #ff398622 #ff398622 and fro with this code snippet I am trying to fetch my customtheme int styleId = ge...
Ronit kadwane
1

votes
2

answer
693

Views

How to get the size of database in KB/MB

I am developing an Android application in Ionic where I put a pre-populated database in apk. User can insert and delete records and initially the size of DB file is 217kb . I want to track after some time what is the current DB file size on user's device. Thanks in Advance!
sam
2

votes
0

answer
19

Views

how to check if the device is being accessed remotely in android using Java ? or javascript for cordova?

I just wanna check if the device is being operated remotely or not? as I don't want someone to use my app remotely for security reasons. I checked over the internet but didn't find any solution. any help would be good. thanks.
MSD
1

votes
1

answer
131

Views

Kotlin for a Cordova/Ionic based plugin

is it possible to use Kotlin as a framework/language as a Cordova plugin? first issue is that it's not copying the .kt file, because it looks for *.java or *.xml if so anyone know a reference on how to setup?
Frendi Muhamad
1

votes
1

answer
63

Views

Cordova Android set windowBackground programmatically at runtime

When the Cordova android app launches, a blank screen is briefly visible before cordova-plugin-splashscreen kicks in. I have learned that this is the windowBackground colour and can be changed by making a custom styles.xml and referencing it within AndroidManifest.xml though the activity's android:t...
Terren
1

votes
0

answer
18

Views

cordova ionic buttons not working within multiple modals

This is such a bizarre issue that I don't even know how to properly title the question. My app lists multiple events. Some events require the user to acknowledge a "waiver" form. The events that require waiver forms have a button "sign waiver form". On all events requiring waiver forms, the wai...
rolinger
1

votes
0

answer
4

Views

Unable to register the iOS device token to azure notification hub using ionic 3 FCM token using Java

I am Using FCM with ionic 3 plugin for IOS app, while trying to register device token to Azure notification hub, with the below FCM token generated by , this.fcm.getToken().then(token => { /*saving token here*/}); c-NtgjPB8Rg:APA91bEk0bvwec5tGjzCYQ_0I2axwpFmuRJ1JRUpHwdcTkVV1J1AR_Xb3p7qYp68il0y_TmiJ4...
user3540379
1

votes
2

answer
5.2k

Views

How to Integrate facebook login in phonegap application

I am creating an android application using phonegap, have tried installing plugin like InAppBrowser etc, but nothing is working for me, I have created AppID and App Name in Facebook developer account, Here is the link i have followed https://www.sitepoint.com/how-to-integrate-facebook-login-into-a...
arun
8

votes
1

answer
96

Views

Cookies are not set/stored in iOS with WKWebEngine

Since we upgraded from the old UIWebView engine, we are not able to authenticate our users (using an external auth service), as none of the cookies sent by the APIs are being set in the this web view. This is a major blocker for us and have been trying to determine what a good course of action is. I...
Detuned
1

votes
1

answer
1.5k

Views

Cordova “failed to fetch plugin” error

I've run into this "Failed to fetch plugin error" quite frequently lately. It seems especially easy to prop up if I download my own branch: [email protected]:~/Documents/Work/John/DEMO_APP/BCAppII(dev) $ cordova plugin add https://github.com/t2wu/cordova-plugin-geofence.git#t2wu Error: Failed to fetch p...
huggie
1

votes
1

answer
240

Views

Simulator error for iPhone 8 and X : Unable to lookup service com.apple.CoreSimulator.host_support: 0x3

I am building a Cordova App for iOS using XCore. It perfectly works on simulator of all devices from iPhone 5S to iPhone 7, and for iPhone 8 Plus. But I need my app to work for iPhone 8 and iPhone X devices. Here is my error when I run my app on iPhone 8 or iPhone X. The simulator is turning on, b...
DeenOub
1

votes
3

answer
815

Views

ionic cordova run ios - Export failed with code 65

I'm done with research on this error. I get following error when trying to run ionic cordova run ios --livereload: [cordova] Non-system Ruby in use. This may cause packaging to fail. [cordova] If you use RVM, please run `rvm use system`. [cordova] If you use chruby, please run `chruby system`. [c...
Yassine Zeriouh
3

votes
0

answer
98

Views

Ionic app PHPSESSID changes on each HTTP request on iOS but works fine on android

I am using Ionic1 with AngularJS. I asked a question a few days back to fix an issue I had with PHP session variables which will give a deeper look into what I have done in my code: PHP $_SESSION variables not working in ionic/angularjs application My Issue: I was developing it on Android and now I...
J.Do
0

votes
0

answer
14

Views

Android device camera is not opening, after allowing system permission with Ionic 3

I wanted to use camera plugin in my app. I requested camera permission, but after allowing camera is not opening Trying it on Following device - Moto g4 plus with android version 7.0 Following is Ionic info cli packages: (C:\Users\username\AppData\Roaming\npm\node_modules) @ionic/cli-utils : 1.19.3...
Pratibha
1

votes
1

answer
601

Views

Customizing the blank screen before splash screen and videos not playing in full screen on phonegap

I am building an app on phonegap that displays several links. A blank screen with the icon and title on the left top appears before the splash screen appears when I open the app. However I found online that it is normal in android but we can customize it. Is there any way I can customize it in phone...
workthat
0

votes
0

answer
4

Views

Cordova iOS - WkWebView offline

Application cache is deprecated which means we'll need to switch to service worker but I've done research it was mentioned.. 1) "It is not possible to use a ServiceWorker in a Cordova app because the ServiceWorker API is not available to WKWebView and is not implemented in UIWebView. It is available...
y-dolem
1

votes
2

answer
2.6k

Views

Problems with iOS App Transport Security using ionic and cordova

I have problems to disable the iOS App Transport Security. First of all I am developing under windows 10 with visual Studio and I am trying to build the app on Mac OSX with XCode 7.1 via remotebuild from my windows machine. I am using Ionic framework with cordova und the cordova-ios version 3.9.2 I...
Iceman
1

votes
2

answer
1.5k

Views

How to upload a pdf from iphone using cordova?

I Have a requirement to upload a pdf/doc to server when i put its only giving access to Gallery. I Know due to security reasons this will not allow to access other things but is their any other way to do this. If yes please help me to find the solution
kiran
1

votes
1

answer
2.3k

Views

Ionic 2: src from img not updating

In an Ionic 2 the src from an is not updating inside the callback from a plugin.The template: Using the Camera plugin, I have the following: navigator.camera.getPicture( imageBase64 => { this.avatar_path = 'data:image/png;base64,' + imageBase64; }, error => { console.log(error) }, { sourceType: Cam...
Christian Benseler
1

votes
0

answer
17

Views

Cordova - how to set in app localisations for display on the Google Play Store

In my Ionic app I use a Cordova plugin for iOS cordova-plugin-ios-localized-strings where I can specify the languages supported by my app. I'm not talking about the Stores descriptions, nor about the technique to handle multiple languages in my app. There must an Android equivalent, something in the...
Jean-Pierre Fortin
1

votes
2

answer
1.9k

Views

Cordova android scrolling/performance issues

I use the following CSS to create smooth scrolling for my Cordova app .scrollable { overflow: auto; -webkit-transition-property: top, bottom; transition-property: top, bottom; -webkit-transition-duration: .2s, .2s; transition-duration: .2s, .2s; -webkit-transition-timing-function: linear, linear; t...
Kody R.
1

votes
2

answer
1.5k

Views

How to use Cordova Geolocation plugin in offline mode

I'm using ngCordova Geolocation plugin in my ionic1 app. It gives me latitude and longitude only when I'm connected to wifi or mobile data. How can I do this work offline? The error message for offline mode: Network location provider at 'https://www.googleapis.com/' : No response received NOTE: I se...
Vahid Najafi
0

votes
1

answer
432

Views

How to remove local notification after specified time in cordova

I am working on Ionic + Cordova. I applied this notification to my app https://github.com/katzer/cordova-plugin-local-notifications/ Notification is coming at desired time successfully. Now i want to remove the notification which has shown but didn't respond within 10 mins. If user did not respond...
Muhammad Faizan Khan
1

votes
2

answer
1k

Views

Cordova Build.json password security

I've had issues getting cordova to prompt me for the password to the storePassword and password fields in the build.json file when building and signing my apks. The solution I've turned to is to enter them in the build.json file. My question: is there any security issue when manually entering passwo...
Sam
1

votes
1

answer
998

Views

Chrome remote devices not showing Cordova app

I'm trying to get a Cordova (= webview) app showing in the Chrome inspector remote devices, but it's not working. It seems everything is OK with the developer options, since: The phone is detected by the Chrome tool, but the tool says "No browsers detected" when my app is running on the phone ; If I...
Destal
0

votes
0

answer
8

Views

On Android the statusbar and the navigation bar are still visible while the splashscreen is showing. How to get rid of it?

This is a weird problem with Apache Cordova. I've set up an application to be packaged for Android. Since Android 4.4 there's the immersive mode. So when I add: to config.xml and start the application, I can see the status bar going out of the screen to the top and the navigation bar gets out of the...
obscure
1

votes
1

answer
3.4k

Views

Uncaught TypeError: Chart is not a constructor when using Chart.js

I'm working on my first Cordova projects and am trying to use Chart.js. The documentation states that Chart.js should be included like this: var myChart = new Chart({...}) I installed the library using bower and it is now present under www/lib/chart.js. Chrome gives me Failed to load resource: the s...
qwertz
1

votes
1

answer
1.1k

Views

net::ERR_CONNECTION_REFUSED on cordova app

As the title states, I am getting this error from chrome's remote debugging on a separate android device, when I press the login button to send a GET request using ajax call. It works fine on a browser, however. I've changed the IP address in the URLs on my js files to point to my public IP. I've ch...
B. Rain
1

votes
1

answer
297

Views

Media plugin Image Crop not working in android

Using media plugin , I tried the code, var file = await CrossMedia.Current.TakePhotoAsync(new StoreCameraMediaOptions { AllowCropping = true }); But nothing happening, no crop option showing when I take photo from camera.
Jinesh
1

votes
1

answer
3.4k

Views

Cordova: Problems with GoogleService-info.plist

Currently, I'm working on an app. For the notifications I've been using phonegap-plugin-push combined with Firebase. I'm using this plugin for Android as well as iOS. On Android it works perfectly fine, sure I've been experiencing problems, but got it all done now. IOS on the other hand won't work....
Giovanni
1

votes
2

answer
887

Views

Can not add cordova platform on cordova 7.1.0: Path must be a string

I have got a problem using cordova. After updating cordova I receive "Error: Path must be a string! Received undefined" I thought it might be some issue of platform configuration so I removed the android platform and tried to add it again. Same error. I have updated all installed plugins and the and...
TGJahn
1

votes
2

answer
1.1k

Views

%CommonDir% Errors after modifying of Visual Studio 15 with tools for Apache Cordova

I have modified Visual Studio 2015 with tools for Apache Cordova and now when I'm trying to load any project I have set of errors, and enable to load VS project with the file %CommonDir%\dte80 could not be loaded. Attempt to repair this condition failed because the file not be found then under the...
zrubi
1

votes
1

answer
813

Views

How to stop leaving the current page in Ionic 3?

According to Ionic 3 documentation, this is supposed to work: ionViewWillLeave(): boolean { if (this.cantLeave) { let alert = this.alertCtrl.create({ title: 'You can\'t leave', subTitle: 'You stay and work.', buttons: ['Oh sorry'] }); alert.present(); } return this.cantLeave; } Yet it doesn't. The a...
Tamás Polgár
1

votes
0

answer
18

Views

Start audio while app is in the background after extended periods of time (Android 7+)

We are working on a (ionic) Cordova based app that has to play an alarm sound when it receives certain data from a Bluetooth peripheral. Functionality wise it is similar to "Tile" All of this works fine while the app is in the foreground. It will also work in the background but only for a short per...
Jason Schot
0

votes
0

answer
3

Views

Failed to execute 'createObjectURL' in ionic 3

I was using facing issue while open camera using action sheet and getting following error. CameraProxy.js:105 Uncaught TypeError: Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided. at successCallback (CameraProxy.js:105) my ionic camera version i...
Niraj Gavande

View additional questions