cordova

Cordova: getUserMedia() no longer works on insecure origins

浪尽此生 提交于 2021-02-19 08:07:12
问题 THE SITUATION In my Cordova hybrid app (built with Quasar framework), I need to a add a video-call feature. I need to use the function getUserMedia() . Everything works fine while testing on localhost, but when testing on the device it doesn't work. THE ERROR: [Deprecation] getUserMedia() no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. Most probably this error is caused by the fact that Cordova doesn't

Cordova/Phonegap print via JavaScript inappbrowser

可紊 提交于 2021-02-19 06:25:23
问题 I want to print a page (or some pages) from an iPad app I'm developing. The first thing the app does when launching is to load an external web site by this code: window.location = https://*****.**; It is from this external web site I now want to print some stuff (works great in Safari on iPad). Trying this simple code window.print(); But it doesn't work i the wrapped web app by Cordova/Phonegap. I know there's plugins for this > but those require the js/html code to be local to work, right?

Error: Property 'notification' does not exist on type 'Navigator'

北城以北 提交于 2021-02-19 04:23:05
问题 I'm attempting to use the ionic plugin cordova-plugin-dialogs , the plugin is working and I am able to call navigator.notification.alert() and create a native alert prompt but whenever my app builds, I get the following console error: error TS2339: Property 'notification' does not exist on type 'Navigator'. I read online that this could be related to types but I have confirmed that the types for this plugin are installed. 回答1: The way I solved was to add this to my typings.json: "dialogs":

Cordova IOS 12 Wkwebview body scroll issue

删除回忆录丶 提交于 2021-02-18 16:57:53
问题 I have a Cordova app (PGB cli-6.5.0, Cordova iOS 4.3.1, wkwebview) that is exhibiting strange behavior on iOS 12.1. The code had been working for years before iOS 12. The app allows a variety of numeric input styles implemented in the app but also includes the standard keyboard. In iOS 12 the input popup div or standard keyboard comes up and appears as normal, but a touch does not register in the correct place. They are offset vertically (remember everything is normal visually). This is true

Visual Studio Taco - Remotebuild will no longer deploy to remote device

房东的猫 提交于 2021-02-18 11:37:32
问题 Up until recently (around Sept. 15 2016) I was able to build and deploy a cordova project to a remote device (iPhone 6) using VS2015 with the latest version of TACO and remotebuild. I am now running ios 10 and updated iTunes and xcode. Now when I run a remotebuild the device prompts me to "Trust Computer." I tap the button and then nothing happens. Remotebuild thinks that the deploy was successful but nothing gets installed on the device so the "run" step fails. See the 404 below. GET

Xcode won't let me upload my app

*爱你&永不变心* 提交于 2021-02-18 08:58:13
问题 I have an iOS app created with Cordova, and have just paid my $99 to apple to upload it to the App Store. I've created the app archive, but in the Organizer Upload to App Store… is grayed out, and I've got "Distribution requires enrollment in the Apple Developer Program." Here is my account in preferences, which I have tried removing and re-adding What am I missing? 回答1: I see you have two Team entries. I believe the issue might be because you have the "Personal Team" option selected under

How to keep layout unchanged when keyboard is displayed?

佐手、 提交于 2021-02-18 08:45:29
问题 I have a toy example of a html app running in Cordova (code below) which is laid out with everything relative to the viewport size (either position:absolute and percent, or vh units for fonts). Unexpectedly, when a keyboard is shown, the viewport shrinks vertically resulting in the layout shown in the second screenshot. ; I would like the initial layout to be done exactly as it is here, relative to the full width/height of the viewport, but for it to not change size when the keyboard is

`$cookies.put()` takes 30 seconds to save the cookie on disk on Android

你说的曾经没有我的故事 提交于 2021-02-18 05:35:28
问题 Context: We have a cordova application loading an online website. (We basically use cordova for the plugins) We store a cookie using $cookies.put() It works fine in desktop browsers and on iOS (as long we use expiration on the cookie) Problem: On Android if the user kill the application with 30 seconds after $cookies.put() is called the cookie will be gone on the next reboot. If the user wait more than 30 seconds (like 35 seconds or more) everything works fine. Question: How can we force the

Ionic Cordova - iPhone X safe area has changed with iOS 13+

我与影子孤独终老i 提交于 2021-02-17 06:35:07
问题 I'm writing an app with cordova, Ionic v1, and AngularJS 1.5.3. ionic info Ionic: ionic (Ionic CLI) : 4.10.3 (C:\Users\User\node_modules\ionic) Ionic Framework : ionic1 1.3.5 @ionic/v1-toolkit : 1.0.22 Cordova: cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1) Cordova Platforms : android 8.1.0, ios 6.1.0, browser 5.0.4, windows 4.4.3 Cordova Plugins : cordova-plugin-ionic-webview 4.1.3, (and 17 other plugins) System: Android SDK Tools : 26.1.1 (C:\Users\User\Documents\Android\sdk) NodeJS :

Why Angular 8 router is not working in Cordova IOS with WkWebView?

女生的网名这么多〃 提交于 2021-02-16 14:08:09
问题 I have an existing application built with Angular 8 and its code is shared by a website and 2 mobile applications for Android and IOS , bundled with the help of Cordova . It is working fine but Apple has announced that they will soon no longer supports apps built with UIWebView : The App Store will no longer accept new apps using UIWebView as of April 2020 and app updates using UIWebView as of December 2020. So I am forced to migrate it to WkWebView . There are several threads that I am aware