I am using SMS intent to send a sms for user's phone number verification, according to the new Google permission restriction https://support.google.com/googleplay/android-developer/answer/9047303#alternatives. But the problem is I cannot able to close the messaging app and also couldn't get any callback for sms sent status.(Always returning same resultCode even on pressing back from message app)
I tried this to close the app, but its not working.
smsIntent.putExtra("exit_on_sent", true);
And also followed this answer Sending SMS via an Intent and know if the SMS has been sent or not but again it requires READ_SMS permission.
There is no proper solution for this.
Please suggest me how to achieve this or any other alternate solution. SMS sending is required for my app for Account verification.