Skip to content
This repository has been archived by the owner on Jul 2, 2022. It is now read-only.

Not loading local files #3

Closed
spreadzz opened this issue Aug 10, 2020 · 4 comments
Closed

Not loading local files #3

spreadzz opened this issue Aug 10, 2020 · 4 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@spreadzz
Copy link

This plugin is not working for me.

I understand this was done as a fix for cordova-plugin-wkwebview-file-xhr which worked ok for my app, until cordova-ios 6

My app loads the html and js files using JS and ajax, but they are not working.

Am I doing something wrong or?

@globules-io globules-io self-assigned this Aug 10, 2020
@globules-io globules-io added the help wanted Extra attention is needed label Aug 10, 2020
@globules-io
Copy link
Owner

globules-io commented Aug 10, 2020

Yes, most probably. Please be more specific than "not working". Also paste your preferences.

@spreadzz
Copy link
Author

spreadzz commented Aug 10, 2020

By not working, I mean it's not loading the local HTML and JS files with XMLHTTPRQUEST.
It's the same as I never install the plugin. And it's the same as before I started using cordova-plugin-wkwebview-file-xhr

I do not get any errors in the console. I hooked the xCode with Safari to check out.
I'm not sure what more info I can provide you.

If I downgrade to cordova-ios 5.1.1
Install cordova-plugin-wkwebview-file-xhr and it's dependencies it works.
But unfortunately I need cordova-ios 6

So right now my app is stuck at a gray blank screen because it can not load the necessary local files.

Screenshot 2020-08-10 at 15 06 53

@spreadzz
Copy link
Author

        <preference name="target-device" value="universal" />
        <preference name="deployment-target" value="11.0" />
        <preference name="SuppressesLongPressGesture" value="true" />
        <preference name="DisallowOverscroll" value="true" />
        <preference name="WKWebViewOnly" value="true" />
        <feature name="CDVWKWebViewEngine">
            <param name="ios-package" value="CDVWKWebViewEngine" />
        </feature>
        <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />

@globules-io
Copy link
Owner

  1. There is no preference for this plugin
 <feature name="CDVWKWebViewEngine">
            <param name="ios-package" value="CDVWKWebViewEngine" />
        </feature>
        <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />

is obsolete with cordova-ios.

Please RTFM

Repository owner locked and limited conversation to collaborators Feb 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants