[BroadcastReceiver(Enabled = true, Exported = true, Permission = "android.permission.RECEIVE_SMS")]
[IntentFilter(new[] { "android.provider.Telephony.SMS_RECEIVED" }, Priority = (int)IntentFilterPriority.HighPriority)]
public class SmsListener : BroadcastReceiver
{
protected string message, address = string.Empty;
public async override void OnReceive(Context context, Intent intent)
{
if (intent.Action.Equals("android.provider.Telephony.SMS_RECEIVED"))
{
//Do code