UdaraAlwis / XAndroidSMSRetrieverAPIDemo

Xamarin Android SMS Retriever API Demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Xamarin Android SMS Retriever API Demo

Android SMS Retriever API allows you to access the SMS Messages in the phone without having to request SMS read access permission, thus giving a complete peace of mind for the user. 😉
Oh yes it's available in Xamarin Android as well! ☺️


Read more on my blog post: https://theconfuzedsourcecode.wordpress.com/2019/03/09/using-sms-retriever-api-in-xamarin-android/

In simplest terms we are going to have an object called SmsRetrieverClient that's going to wait for an incoming SMS message with the matching hash key to the app we are using. This active waiting is going to execute for 5 minutes and automatically dispose itself.
When the certain SMS arrived at the inbox during the 5 minute waiting , the SmsRetrieverClient then sends a broadcast to the app with the captured message content, for any listening broadcast receivers registered in the app.  From there we pick up the message inside our broadcast receiver and we process it or do whatever the heck we want with it. 😜

  • Udara Alwis

About

Xamarin Android SMS Retriever API Demo


Languages

Language:C# 100.0%