cordova-plugin-wkwebview-file-xhr | Cordova Plugin for WebView File XHR | Mobile Application library
kandi X-RAY | cordova-plugin-wkwebview-file-xhr Summary
kandi X-RAY | cordova-plugin-wkwebview-file-xhr Summary
This plugin makes it possible to reap the performance benefits of using the WKWebView in your Cordova app by resolving the following issues:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Body constructor .
- Initialize the data .
- Initialize a new Request .
- Header Object .
- Create iterator for value list
- Response constructor .
- Parse a HTTP headers object
- Decode a POST body
- Create a reader ready handler
- Normalizes a header name .
cordova-plugin-wkwebview-file-xhr Key Features
cordova-plugin-wkwebview-file-xhr Examples and Code Snippets
Community Discussions
Trending Discussions on cordova-plugin-wkwebview-file-xhr
QUESTION
We are running a Cordova App which works perfectly fine except for GET requests on IOS. In this scenario, the session cookies won't be transferred to the server. Usually, we use POST requests for our rest api calls. Exceptions are images which we load via GET requests. Therefore, authorized users won't be recognized as logged-in by the server when loading images.
Everything works perfectly when running the webapp oon the browser on the same device. Also, there are no problems on android. My guess is that because of the different http method, the webview chooses to not use the same cookies. This might be related to the cordova whitelist plugin which is now deprecated.
The cookie is being generated on the server on login.
Cordova/plugin versions:
...ANSWER
Answered 2021-Nov-09 at 21:01There are a few things you need to fix. Both these plugins are now obsolete with cordova-ios
6+
QUESTION
I'm trying to migrate my mobile app (developed with Cordova and AngularJS for Android and iOS platforms) and I have some issues from API 29 to API 30. In my app I download from a REST service a JSON catalogue with separated pictures (JPG format) that I store in Data Directory (cordova.file.dataDirectory). With the app build with API set to 29 the app works fine, downloading pictures and displaying them in an HTML page (updated with AngularJS). But if I try to build it with API set to 30, the app continues to work (it download correctly the json and the jpg files in Data Directory) but without displaying the pictures stored in that directory. I also tried to create a new simple mobile app using all the updated component (Cordova 10.0.0, Android platform 10.0.0, plugins, etc.) but I obtain the same behaviour and I cannot resolve this issue. Could you help me or have you an idea how to resolve it?
Info App build with API 29Cordova v8.1.2
Android Platform v8.0.0
Cordova v10.0.0
Android Platform v10.0.0
cordova-plugin-android-permissions 1.0.2 "Permissions"
cordova-plugin-camera 4.1.0 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-datepicker 0.9.3 "DatePicker"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-dialogs 2.0.2 "Notification"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-file-hash 0.4.1 "FileHash"
cordova-plugin-filepath 1.5.8 "cordova-plugin-filepath"
cordova-plugin-geolocation 4.0.2 "Geolocation"
cordova-plugin-globalization 1.11.0 "Globalization"
cordova-plugin-inappbrowser 3.2.0 "InAppBrowser"
cordova-plugin-network-information 2.0.2 "Network Information"
cordova-plugin-sign-in-with-apple 0.1.2 "cordova-plugin-sign-in-with-apple"
cordova-plugin-splashscreen 5.0.3 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova-plugin-wkwebview-engine 1.2.1 "Cordova WKWebView Engine"
cordova-plugin-wkwebview-file-xhr 2.1.4 "Cordova WKWebView File XHR Plugin"
cordova-sqlite-storage 5.0.0 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-mobile-accessibility 1.0.5-dev "Mobile Accessibility"
ANSWER
Answered 2021-Oct-07 at 14:14Try adding to you config
QUESTION
When trying to send my app to app store, I'm receiving the following message: ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).
But my simulator log shows
...ANSWER
Answered 2021-May-23 at 18:23Cordova has already deprecated the WKWebView usage. So in order to fix those and future issues update cordova version to 10 and android/ios projects to newest.
Android 9.1 Ios 6.2
Here is the deprecation message: https://cordova.apache.org/2021/02/07/deprecate-wkwebview-engine.html
QUESTION
Android emulator shows error when we launch a bare bone app, please see the screenshot attached. It works as expected for iOS.
I have tried all the default templates navbar,navdrawer and blank.
This is an app directly from the getting started page and no modifications have been made to the template code.
...ANSWER
Answered 2020-Sep-23 at 14:45The below solution worked for me
QUESTION
In my Cordova app, I have a problem after upgrading to cordova-ios 6.1.1. The app runs correctly, but the splash screen isn't showed. There is only a white screen, like if my splash screen files are ignored.
I have this config.xml file:
...ANSWER
Answered 2020-Oct-02 at 15:59I did it!!!!!
First of all, keep in mind you have to use only one image for the iOS splash screen, although the Cordova docs says you can also use multiple images like in the past.
So, in the root folder you need this:
QUESTION
I am trying for 3 days to get a video playback for cordova-ios 5.1.1 on Cordova 9 to work.
What is this app supposed do in short?
A video gets download to the device storage and should be playable from that device as an offline video player.
There were several problems I had to sort out first:
Stuck at Cordova 9 due to 'cordova-plugin-file-transfer' which is not yet compatible with Cordova 10 --> https://github.com/apache/cordova-plugin-file-transfer/issues/258
Unable to go with Cordova 10 yet, because suggested ways to download huge files on Cordova 10 gets the memory exhausted on the device, as the data is loaded to memory completly first
using cdvfile:// schema to open a local video for gives me a timeout, the video does not start
using a local server plugin did not work for me either
I really tried a lot of configurations and code to get this to work and spent a lot of time at git trying to figure out what I might be missing.
These are the plugins I tried for a working concept of an offline video player:
https://github.com/apache/cordova-plugin-wkwebview-engine
https://github.com/oracle/cordova-plugin-wkwebview-file-xhr
https://github.com/TheMattRay/cordova-plugin-wkwebviewxhrfix
https://github.com/floatinghotpot/cordova-httpd
https://github.com/communico/cordova-httpd
https://github.com/nchutchind/cordova-plugin-streaming-media
This is my content security policy:
...ANSWER
Answered 2020-Aug-14 at 15:52I was able to solve the issue. Here is a solution that worked for me for all people that might have trouble with this.
Basically I had a configuration error and some filename/filepath issues with this.
I can confirm the upper concept works with this platform and plugins:
QUESTION
Hi I have developed an app using Cordova and mainly developed it by testing IOS first. I have now published the app on the App Store and now want to publish it onto the google play store.
I have been testing the app via android studio and can't get past my login page. When I fill the form and submit it no AJAX request is made to check my login credentials and log me in.
I am using the android studio profiler to check if a request is made and I can't see one. I have added logging before the Ajax request but after the form is submitted and that is working.
After looking through multiple forums I still can't seem to get it working. I have added the white list plugin, I have setup CORS correctly because I had to do this to get it working for IOS.
Here is my config.xml file
...ANSWER
Answered 2020-Jul-10 at 12:00In config.xml, under add this tags
QUESTION
I have upgraded my application to WKWebView by following this blog. If i make a build using ionic cordova build ios it runs normally but if i make a --prod build then my app is getting stuck after splash screen and a white screen shows up. I have read many threads regarding the same and found similar issues.
I have tried the following plugins -
...ANSWER
Answered 2020-Jul-10 at 06:34After a lot of hassle, I found out the issue was different on the prod build. I was getting a cannot find module '.'
error due to Typescript version mismatch which was causing the blank white screen. When i degraded the TS version I was able to make a prod build.
Posting for the people if they come across the same issue in the future.
Thanks!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cordova-plugin-wkwebview-file-xhr
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page