Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it's not working on cordova-android 10.0.0 and above #97

Open
kokchyuan opened this issue Oct 14, 2021 · 6 comments
Open

it's not working on cordova-android 10.0.0 and above #97

kokchyuan opened this issue Oct 14, 2021 · 6 comments

Comments

@kokchyuan
Copy link

No description provided.

@CoooWeee
Copy link

I maybe have the same issue. I am using ionic with capacitor. After installing the plug-in the sources files do not get encrypted.

"@ionic-native/core": "^5.36.0",
"@capacitor/app": "^1.0.5",
"@capacitor/core": "^3.2.5",

@LongTimeNoTea
Copy link

i can't make it work either, any updates?

@serfermorhc
Copy link

Same, on android 10 its not working.

@kokchyuan
Copy link
Author

Can't think any way to make this plugin work on cordova android 10,
the hacky way i can think of is to replace the platforms/android/CordovaLib/src/org/apache/cordova/engine folder from cordova android 9.1.0, this will fallback the usage of WebViewAssetLoader and the plugin will able to work. If you guys have any other solution please comment. Thanks

@iPMisterX
Copy link

iPMisterX commented Jan 27, 2022

i try replace this code

platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebViewClient.java

    @Override
    public WebResourceResponse shouldInterceptRequest(WebView view, WebResourceRequest request) {
        // return this.assetLoader.shouldInterceptRequest(request.getUrl());
        return super.shouldInterceptRequest(view, request);
    }

weareu added a commit to weareu/cordova-plugin-crypt-file that referenced this issue Feb 1, 2022
@weareu
Copy link

weareu commented Feb 2, 2022

#100 Added Cordova Path Handler web plugin to decrypt web requests. If fall-through to file protocol the original should still work. It does require AndroidX so if you are having android-x support issues due to various versions, especially on 9 template, adding cordova-plugin-androidx-adapter should fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants