Coder Social home page Coder Social logo

Comments (3)

Bramzor avatar Bramzor commented on June 20, 2024

Your error indicates: requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS

Did you request permission to the user to even access their contacts? You cannot just access a user his contacts without permission (privacy!). You can use the diagnostic plugin to check if user provided permission or ask permission: https://github.com/dpa99c/cordova-diagnostic-plugin#iscontactsauthorized

from cordova-plugin-contacts.

ChenJiaXu avatar ChenJiaXu commented on June 20, 2024

Your error indicates: requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS

Did you request permission to the user to even access their contacts? You cannot just access a user his contacts without permission (privacy!). You can use the diagnostic plugin to check if user provided permission or ask permission: https://github.com/dpa99c/cordova-diagnostic-plugin#iscontactsauthorized

I have used the cordova request permission plugin in the code to get the judgment. When I open the app for the first time and pop up the authorization interface, a flashback event will cause the app to be reopened to be used normally. You can look at the error message I provided. Someone in China encountered the same error. The specific reason seems to be sdk22 or above. I also provided two link addresses, which provide solutions, but I will modify it after reference. I can't solve my problem, so I hope I can get help from you.

from cordova-plugin-contacts.

timbru31 avatar timbru31 commented on June 20, 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.