cordova

input type=“file” does not work in cordova

风格不统一 提交于 2020-12-12 06:25:16
问题 I have a cordova based app and cannot get the file browser to launch on android (SDK-23) with HTML File tag <input type="file" accept=".doc,.docx,.rdf,.txt,.pdf,.odt" onchange="angular.element(this).scope().upload(this)"> Nothing happens when I select the link. Can you please give some suggestion on how to fix this issue Thanks for the help 回答1: <input type="file"> will not work in Cordova. You need to use the File Plugin. 来源: https://stackoverflow.com/questions/39476916/input-type-file-does

Error: No component factory found for [object Object]

南笙酒味 提交于 2020-12-11 05:12:11
问题 I'm stuck. I know how to usually deal with the problem, but this time I'm stuck. 1) Error: Uncaught (in promise): Error: No component factory found for [object Object]. Did you add it to @NgModule.entryComponents? Why the error message says [object Object] , instead of specific component? I know where is the error, I know which code is causing it. But I do not understand WHY the error occurs and WHY it says [object Object] . 2) I have created a component, I have added it to declarations and

Error: No component factory found for [object Object]

孤者浪人 提交于 2020-12-11 05:04:18
问题 I'm stuck. I know how to usually deal with the problem, but this time I'm stuck. 1) Error: Uncaught (in promise): Error: No component factory found for [object Object]. Did you add it to @NgModule.entryComponents? Why the error message says [object Object] , instead of specific component? I know where is the error, I know which code is causing it. But I do not understand WHY the error occurs and WHY it says [object Object] . 2) I have created a component, I have added it to declarations and

Ionic + Cordova Android build error - could not find tools.jar

久未见 提交于 2020-12-05 11:57:08
问题 today I've upgrade my MacBook to macOS Big Sur version 11.0.1. Now there is a problem coming out when I tried to build the project for Android. Execution failed for task ':CordovaLib:compileDebugJavaWithJavac'. > Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation. 回答1: I also faced the same issue today while the same setup (building the Android app) was working for me before upgrading to Big Sur. I saw

App rejected: Missing Info.plist key “NSBluetoothPeripheralUsageDescription” but framework is not present

眉间皱痕 提交于 2020-12-05 11:55:00
问题 I have a Cordova app that runs in iOS phones. I'm trying to send an update of this app to App Store, but it is being rejected. Firstly it was rejected because the info.plist contained a line with the key NSBluetoothPeripheralUsageDescription and this feature is never used in my app. To solve this problem I removed this line from info.plist and the respective framework from Linked Frameworks and Libraries in xCode (the framework CoreBluetooth.framework and the line

App rejected: Missing Info.plist key “NSBluetoothPeripheralUsageDescription” but framework is not present

落花浮王杯 提交于 2020-12-05 11:52:12
问题 I have a Cordova app that runs in iOS phones. I'm trying to send an update of this app to App Store, but it is being rejected. Firstly it was rejected because the info.plist contained a line with the key NSBluetoothPeripheralUsageDescription and this feature is never used in my app. To solve this problem I removed this line from info.plist and the respective framework from Linked Frameworks and Libraries in xCode (the framework CoreBluetooth.framework and the line

Can iframes work in WKWebView with Cordova?

我怕爱的太早我们不能终老 提交于 2020-12-05 10:26:38
问题 According to the Apache Cordova blog, iframes may not work using WKWebView. (https://cordova.apache.org/news/2018/08/01/future-cordova-ios-webview.html) I have a Cordova application that is in the App Store that relies quite heavily on iframes. Since UIWebView is likely to be removed in iOS 13, is there a way to get iframes working using WKWebView? Here's what I've done so far: I tried using the Ionic WebView plugin (https://github.com/ionic-team/cordova-plugin-ionic-webview), and although it

Cordova: onclick event is calling before button click

人走茶凉 提交于 2020-12-05 10:23:31
问题 I am new to cordova and javascript. I am just trying to print some message and want to show alert when i click the button. But it is happening once the app is loaded. This is my code. <body> <div class="app"> <h1>Apache Cordova</h1> <div id="deviceready" class="blink"> <p class="event listening">Connecting to Device</p> <p class="event received">Device is Ready</p> </div> <button id = "setLocalStorage">SET LOCAL STORAGE</button> <br/> <button id = "showLocalStorage">SHOW LOCAL STORAGE</button

Cordova: onclick event is calling before button click

眉间皱痕 提交于 2020-12-05 10:23:12
问题 I am new to cordova and javascript. I am just trying to print some message and want to show alert when i click the button. But it is happening once the app is loaded. This is my code. <body> <div class="app"> <h1>Apache Cordova</h1> <div id="deviceready" class="blink"> <p class="event listening">Connecting to Device</p> <p class="event received">Device is Ready</p> </div> <button id = "setLocalStorage">SET LOCAL STORAGE</button> <br/> <button id = "showLocalStorage">SHOW LOCAL STORAGE</button

how capturing geolocation with device offline - cordova

匆匆过客 提交于 2020-12-05 05:22:13
问题 I am developing an application using the cordova and found a need to take the data of latitude and longitude of the User, but my application will be used offline (without internet access). I'm with two questions: 1 - How to check if the unit is active GPS or not? 2 - How I can get the latitude and longitude Offline without internet connection? It's possible? 回答1: I´ll try to answer you: 1.- There you have the way to use PhoneGap GeoLication API to check location, and if GPS is enabled. Check