Read SMS Messages on Android phone with .NET MAUI

AG 491 Reputation points
2024-04-24T07:49:29.1866667+00:00

Hi,

Following .NET MAUI code from this link https://learn.microsoft.com/en-us/answers/questions/1432733/access-and-read-all-sms-on-android-phone-with-net?page=1&orderby=Helpful&comment=answer-1367159#newest-answer-comment

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,

AG

.NET MAUI
.NET MAUI
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
    2024-04-24T08:05:01.61+00:00

    Update to .NET MAUI 8.0.21 solved the problem.

    0 comments No comments