How to fix SMS retriever API
I used this post https://developers.google.com/identity/sms-retriever/request This code past to MySMSBroadcastReceiver. public class MySMSBroadcastReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if (SmsRetriever.SMS_RETRIEVED_ACTION.equals(intent.getAction())) { Bundle extras = intent.getExtras(); status = (Status) extras.get(SmsRetriever.EXTRA_STATUS); switch(status.getStatusCode()) { case CommonStatusCodes.SUCCESS: message = (String) extras.get(SmsRetriever.EXTRA_SMS_MESSAGE); break; case CommonStatusCodes.TIMEOUT: break; } mListener.MySMSBroadcastReceiver(message); } } public static void bindListener(MessageListener listener){ mListener = listener; }} But result get nothing. Help what do I do wrong?