title: How do I solve the google play policies for sms permission?
body: <p>I have used the sms permission in manifest file for sending the sms in offline by using sms manager but google didn't accept the declartion form which i have checked the device automation or default sms handler or default assistant handler, so the app has been rejected most of the times from the play store.</p>
  
  <p>How to handle this problem because I have to use the sms in the app. </p>
  
  <p>Please help me to find the solution. Thanks in advance</p>
  
  <p>Manifest:</p>
  
  <pre><code>  &lt;uses-permission android:name="android.permission.SEND_SMS" /&gt;
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>SmsManager sms = SmsManager.getDefault();
      ArrayList&lt;String&gt; parts = sms.divideMessage(message);
  
      ArrayList&lt;PendingIntent&gt; sendList = new ArrayList&lt;&gt;();
      sendList.add(sentPI);
  
      ArrayList&lt;PendingIntent&gt; deliverList = new ArrayList&lt;&gt;();
      deliverList.add(deliveredPI);
  
      sms.sendMultipartTextMessage(phoneNumber, null, parts, sendList, deliverList);
      Toast.makeText(context, "SMS sent.",
              Toast.LENGTH_LONG).show();
  
      //we unsubscribed in 10 seconds
      new Handler().postDelayed(new Runnable() {
          @Override
          public void run() {
              context.unregisterReceiver(smsUtils);
          }
      }, 10000);
  </code></pre>