Closed martellapetesso closed 4 years ago
what xcode, what react native version, etc.
Oh sorry:
Have any idea?
no ideas yet.
please share code and outline your general approach, ie are you asking for permission first, are you configuring different permissions and then reading contacts?
I configure on app start location permission. And on the contact screen i request the permission for contacts.
if(Platform.OS === 'ios') {
Contacts.checkPermission((_, permission) => {
if (permission === 'undefined') {
Contacts.requestPermission((err, permission2) => {
console.log("PERM: ", permission2)
})
}
})
} else {
PermissionsAndroid.request(
PermissionsAndroid.PERMISSIONS.READ_CONTACTS,
{
'title': 'Contacts',
'message': 'This app would like to view your contacts.',
'buttonPositive': 'Please accept bare mortal'
}
).then(() => {
Contacts.getAll((err, contacts) => {
if (err === 'denied'){
console.log("DENIED")
} else {
console.log("CONTACTS: ", contacts)
}
})
})
}
Hi everybody,
i have the following issue. I got everytime the signal SIGABRT Error in Xcode if i call the requestPermission() method. Thanks in advance.