GithubHelp home page GithubHelp logo

Comments (4)

RazaGR avatar RazaGR commented on August 25, 2024

I found this on webview https://developer.chrome.com/multidevice/webview/overview

If you are currently using content:// URLs to load files from a content provider in your application, note that these URLs only work when accessed from local content. That is, web content hosted outside your application is not allowed to access files built into your application.

what does this mean?

from cordova-plugin-contacts.

RazaGR avatar RazaGR commented on August 25, 2024

Well since thew newer webview doesn't support content:// URLs I have created a PR, it converts all content:// URLs to base64 image.

PR here #182

from cordova-plugin-contacts.

Bramzor avatar Bramzor commented on August 25, 2024

@Divxtaman Thanks for the PR but it does not seem to work for me. Also its not a good solution as pulling all the content of the pictures over cordova will probably only slow it down. That is why local storage is used.
I put some time into this issue and indeed, it seems that the new webview (cordova-plugin-ionic-webview) does not allow the browser to access files on the device itself. Security wise this is a good thing, but it blocks using content:// on android or using /var/... on iOS. So actually both Android and iOS are blocked by this. I figured out that there is already a PR request for this and already merged (ionic-team/cordova-plugin-ionic-webview#242) that will solve this issue by rewriting the URLs to a proxy that will allow you to access the local content. I was not able to try this PR yet but it should solve the issue. Currently I'm using a workaround for iOS which is putting 'http://localhost:8080/_file_' in front of the photo which does work. For android I currently just ignore the photo.

from cordova-plugin-contacts.

timbru31 avatar timbru31 commented on August 25, 2024

We are archiving this repository following Apache Cordova's Deprecation Policy. We will not continue to work on this repository. Therefore all issues and pull requests are being closed. Thanks for your contribution.

from cordova-plugin-contacts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.