A Xamarin Forms application that is capable of receiving SMS messages and can be set as default SMS app.
All credits go to Leon Lu. I just recreated the project from the ground up.
Unfortunately, receiving SMS is not implemented in Xamarin Essentials library. Instead you have to implement this functionality yourself, using BroadcastReceiver class.
I found this whole process poorly documented and very confusing. So I started looking for implementations.
This solution, created by Leon Lu, is
-
As clean as it can get
-
Implements enough functionality, so the end result can be set as default SMS app.
- You need to grant SMS permission manually, in app settings.
- Stack Overflow: Creating Default SMS App in Xamarin.Forms