title: How to automatically read SMS in Android?
body: <p>From Jan 9th, 2019 Google will remove apps from Playstore with permissions READ SMS AND CALL LOG, if they don’t explain the necessity. </p>
  
  <p>Google introduced SMS Retriever API to automatically fetch a verification code sent via SMS within the app.</p>
  
  <p>But those APIs are not clearly expressed and is very confusing. I don't know if it's me who thinks it is confusing. Anyhow, here is what I have looked into to read SMS but I could understand nothing.</p>
  
  <p>I am not sure if this is the correct link to read SMS automatically.</p>
  
  <p><a href="https://developers.google.com/identity/sms-retriever/request" rel="nofollow noreferrer">https://developers.google.com/identity/sms-retriever/request</a></p>
  
  <p>I used these dependencies </p>
  
  <pre><code>implementation 'com.google.android.gms:play-services-auth:17.0.0'
  implementation 'com.google.android.gms:play-services-auth-api-phone:17.0.0'
  </code></pre>
  
  <p>There is one good tutorial to implement auto-read SMS but some of the APIs are deprecated so I'm trying to find any simple explanation to implement auto-read SMS in Android.</p>
  
  <p>Here is the link to that tutorial</p>
  
  <p><a href="https://androidwave.com/automatic-sms-verification-android/" rel="nofollow noreferrer">https://androidwave.com/automatic-sms-verification-android/</a></p>