Comments (4)
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.
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.
@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.
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)
- ionic contacts error: Cannot read property 'split' of undefined HOT 4
- Contact loading too slow when user has more than 3000 contacts in his phone. HOT 13
- All the fields are giving null value but count is correct. Ionic 4. HOT 1
- modify the contact picture HOT 2
- NullInjectorError: No provider for Contacts! HOT 3
- conduct contact.save() twice on Android, but only get one contact. HOT 3
- Plugin skip birthday without year on android HOT 1
- Best approach for searching on phone number HOT 5
- displayName:Null for android and ios HOT 2
- iOS 13 note field of contact is null HOT 3
- Support multiple find contact inside a Loop HOT 7
- No way to display single contact that I just added with this plugin? HOT 1
- App Crash after save the new contact in Android 9 HOT 2
- Localized Phone Label (iOS) HOT 1
- App crashed HOT 4
- Possible deadlock in iOS queue management code HOT 2
- Ios-9 : AddressBook is deprecated. Consider migrating to Contacts/ContactsUI. in ionic 4/5 HOT 3
- App crash in android 10 HOT 5
- App Crash with iOS 14 HOT 3
- Not able to fetch newly added contacts and contact last updated timestamp HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-contacts.