-
I've been reading on how to access the address book/contacts. I'm on a PC and have an android emulator up and running logged into my gmail. I run the code below. Up pops my address book contacts, so that is good. Unfortunately, when I select a contact, the next line isn't hit. Below the source is some output that I see in the Output window. I see some nulls in the output, but I don't know what to make of it. the behavior i get is that after I select a contact, that window closes, and the previous screen is displayed. When I trap the exception, I get the message that the app doesn't have the READ_CONTACTS permission, yet, I am obviously setting it. I've followed the instructions here on setting things up: https://docs.microsoft.com/en-us/dotnet/maui/platform-integration/communication/contacts?tabs=android It seems as if the permission isn't being read in the manifest or out of the assemblyinfo.cs file. Am I missing something? Does it wound like I've done something wrong? TIA, My Manifest file:
try{
[WindowOnBackDispatcher] App: com.companyname.scanandscoringmauiapp featureFlagEnabled=true appRequestsPredictiveBack=false alwaysEnforce=false |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks to SO, I found my answer and kludged a quick fix together. Read it at: |
Beta Was this translation helpful? Give feedback.
Thanks to SO, I found my answer and kludged a quick fix together. Read it at:
https://stackoverflow.com/questions/73364361/why-is-read-contacts-permission-not-being-read-in-net-maui/73366423#73366423