cordova-ios

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

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

倖福魔咒の 提交于 2021-02-16 14:06:26
问题 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

Http and Https calls not working after Cordova upgrade

╄→尐↘猪︶ㄣ 提交于 2021-01-29 18:23:26
问题 I built an app by using Cordova and it's in production for more than years. Recently few days back I upgraded my Cordova version from 9.x to 10.x. After upgrade, Http and Https calls are not working. I am using Axios to make API calls. After I did research on this issue I found some solutions to add cordova-plugin-wkwebview-file-xhr. I did but no luck. I placed my config.xml file for the reference. Getting the following error while making API calls nativeXHR: Invalid url scheme null It would

Cordova app stuck on splash screen on iOS 14 Beta

故事扮演 提交于 2020-12-26 06:57:40
问题 I have a plain Cordova app and when I run it on iOS 14 beta the app gets stuck on the splash screen and there are few warnings/errors logged in XCode but I am not sure whether it is causing the problem. I have created a blank Cordova app to test whether it works on iOS 14 and when I run it on the device the app worked as expected but when I set the app to use WKWebView instead of UIWebView the app got stuck on the splash screen. I have added the below preferences to use the WKWebView in

Why are links inside an iFrame opening in system safari?

不问归期 提交于 2019-12-10 12:50:44
问题 Between builds (I am unsure what changed to trigger this), an application went from the following behavior in iOS. A main webview loads index.html , and has an iframe that has many anchors in it Anchors would stay inside the iFrame unless otherwise manipulated and redirected with JavaScript that runs from index.html To: A main webview loads index.html , and has an iframe that has many anchors in it Clicking any anchor inside of the iFrame or any action that triggers a location change results

Cordova deviceready not firing in iOS until interacting with iOS

主宰稳场 提交于 2019-11-30 12:50:40
I had a really weird bug where deviceready event would not fire in an iOS device until the user interacted with the OS itself, this is, pressing the front button, show the notification center with drag down or go to device settings dragging up. As soon as the user started dragging the iOS notification center, then deviceready fired. Something as simple as this would just not work: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width" /> <meta http-equiv="Content-Security-Policy" content=

Cordova deviceready not firing in iOS until interacting with iOS

岁酱吖の 提交于 2019-11-29 17:59:49
问题 I had a really weird bug where deviceready event would not fire in an iOS device until the user interacted with the OS itself, this is, pressing the front button, show the notification center with drag down or go to device settings dragging up. As soon as the user started dragging the iOS notification center, then deviceready fired. Something as simple as this would just not work: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="initial-scale=1, maximum

Cordova Error: Your ios platform does not have Api.js

故事扮演 提交于 2019-11-27 21:47:32
I'm trying to build a cordova ios app but not having much luck and getting strange errors. Using this version of Cordova with older version of cordova-ios is deprecated. Upgrade to cordova-ios@4.0.0 or newer. Error: Your ios platform does not have Api.js The first warning says my cordov-ios version is old, which is strange as this is my output: $ cordova --version 7.0.1 $ cordova platform version ios Installed platforms: ios 4.4.0 Available platforms: android ~6.2.2 blackberry10 ~3.8.0 (deprecated) browser ~4.1.0 osx ~4.0.1 webos ~3.7.0 So I clearly have the latest versions necessary. And then

Cordova Error: Your ios platform does not have Api.js

夙愿已清 提交于 2019-11-27 04:32:50
问题 I'm trying to build a cordova ios app but not having much luck and getting strange errors. Using this version of Cordova with older version of cordova-ios is deprecated. Upgrade to cordova-ios@4.0.0 or newer. Error: Your ios platform does not have Api.js The first warning says my cordov-ios version is old, which is strange as this is my output: $ cordova --version 7.0.1 $ cordova platform version ios Installed platforms: ios 4.4.0 Available platforms: android ~6.2.2 blackberry10 ~3.8.0