I'm creating a Call Directory Extension based on this example from Xamarin: Xamarin Example Code
When I follow the example exactly, it works well enough, but in the example all the phone numbers added to the Call Directory are hardcoded. That is not really a viable option, so I'm trying to figure out how I can get the phone numbers from an sqlite database.
My extension always crashes when I try to read the phone numbers, even when the database only contains a few phone numbers. I know the extension can access the database, I also use it for logging events, and the extension can write to the database without any issues.
Has anyone had any luck getting the phone numbers to identify/block from an external source, like a database or a file?
Maybe I need to read the database async or something similar, so the operation is not on the main thread?