Storing User SMS In Database In Android.

A Scenario ,

A User Installed My Developed Application , User Granted Application To Read SMS , Now My Application Needs To Read Device SMS Messages , And Then Sending / Storing The Message in firebase / any other database .

what logic should i have to write to develop this application …

Thanks , In Advance…

probably the texting extension can help?
https://puravidaapps.com/texting.php

Taifun