Reading the official documentation CallScreeningService
will not be passed incoming calls if the number is saved as a contact, unless your app has the READ_CONTACTS
permission and of course the permission is also asked to the user explicitly.
I inspected the permission with adb and I have everything set and granted, I’m trying to call using my other number and it is in contacts list, however I’m testing this scenario, where also numbers in contact list needs to be passed to the screening service.
Needless to say:
@Override
public void onScreenCall(Call.Details callDetails) {
Is never called for calls from numbers in my contacts (I actually tried different numbers) what other than android.permission.READ_CONTACTS (granted)
I need?