Code Monkey home page Code Monkey logo

Comments (5)

abhayastudios avatar abhayastudios commented on July 21, 2024

Hi @priyansh360 I am not completely following what you mean. Can you please provide a test project that reproduces the issue?

On Android this plugin uses the nativescript-permissions plugin to request any permissions. So if the issue is that you wish to request the permission before a call is made to this plugin, then you could consider using that plugin directly yourself, so that once you call this contacts plugin the permission should already be granted.

from nativescript-contacts-lite.

priyansh360 avatar priyansh360 commented on July 21, 2024

Hi @Jonothan ,
I am sorry you didnt understand my concern as when i deny for Permission , how can i check for if after allowing the android Runtime permission for Contacts, the page is not refreshed as it is happening in iOS.
Currently i am not able to get the runtine success after allowing the contacts Permission

from nativescript-contacts-lite.

abhayastudios avatar abhayastudios commented on July 21, 2024

@priyansh360 I'm sorry but I am still not sure I understand your question. Are you talking about the demo-angular project? If so please details step-by-step of what you are doing and what you expected to happen. Also if you are talking about your own project, please provide a test project that reproduces the issue and also step-by-step what you are doing and what you expected to happen.

I just ran the demo project on android, when I deny permissions of course I don't get any result, but the next time I run the app, it will again ask for permissions and if I then approve I will get all the contacts.

In the demo app, I am requesting to load the contacts only once in the OnInit method, but in a real app you would want to handle this differently, probably by catching the rejected cacheContacts promise and showing some alert to your user asking them to grant permissions and then try again.

from nativescript-contacts-lite.

abhayastudios avatar abhayastudios commented on July 21, 2024

Closing due to no response

from nativescript-contacts-lite.

priyansh360 avatar priyansh360 commented on July 21, 2024

yes , sure i got the answer @abhayastudios Thanks :)

from nativescript-contacts-lite.

Related Issues (12)

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.