Comments (5)
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.
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.
@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.
Closing due to no response
from nativescript-contacts-lite.
yes , sure i got the answer @abhayastudios Thanks :)
from nativescript-contacts-lite.
Related Issues (12)
- Compilation failure on android with webpack HOT 6
- Phone Number repeated with multiple account name, though in my contacts list, I don't have multiple account names HOT 1
- Could not create service of type OutputFilesRepository using ExecutionGradleServices.createOutputFilesRepository() HOT 8
- get CONTACT_STATUS_TIMESTAMP field HOT 4
- Webpack Compatibility HOT 4
- Unexpected token: name (contacts) HOT 2
- Running getContacts or getContactsWorker on iOS make the app crash HOT 2
- [Android] Type field returns a value not included in enum HOT 2
- How can I find contacts that start with a letter?
- conflict with eslint and/or eslint-plugin-promise HOT 2
- Not able to Access Contacts in IOS(though works, when page loads), if permission is disabled and then enabled from Phone Settings HOT 2
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 nativescript-contacts-lite.