Forum Xamarin.Forms

Accessing contact list of phone with user permission

I want to access contact list of phone along with user permission that is whenever user clicks the button to load contacts a popup should be shown asking user for permission to access his contacts and when user permits it the READ CONTACTS permission should be enabled and contact list should be visible.

I have made an app which can shows contact list of phone but for enabling permission I have to do manual work as going into settings of mobile and then enabling permissions for app, rather I want this to happen automatically.

I Have enabled permissions from Android manifest as follows
uses-permission android:name="android.permission.READ_CONTACTS"
But it wont enable permissions for contact access while installation of app or loading, I provide this permission manually form settings of my phone

Is there any way that will enable accessing contact list without any manual work and just asking user with popup or while app installation only?

Answers

Sign In or Register to comment.