Read SMS Messages on Android phone with .NET MAUI

AG 491 Reputation points


Following .NET MAUI code from this link

I am unable to run the code on VS 2022 version 17.9.6 with .NET MAUI version 8.0.20 as I am receiving the following errors:

"The type name 'Net' does not exist in the type 'Android'"

"Android' does not contain a definition for 'Net'"

"The type name 'Database' does not exist in the type 'Android'"

I would also like to get the "service_center" value from the SMS and also if it I will able to get all the Columns available in the SMS.

Thanks in advanced for any help,


A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,979 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AG 491 Reputation points

    Update to .NET MAUI 8.0.21 solved the problem.

    0 comments No comments