I’m looking to build an Android app that will listen and read incoming SMS. Based on the content of the SMS the app builds an object that I would like to persist in DB. The app should listen to SMS even if it is closed.
e.g SMS recieved from +974594746 and content is “please visit our website at www.sms.com, quote 1234 to purchase”
construct an object from that SMS, MyObject = from: +974594746, webUrl: www.sms.com: quotenumber: 1234
then I want to persist MyObject on my storage. So every time that I get SMS from +974594746 I repeat this process.
I really would suggest that you do not build an app like this. For security reasons, I can say that I would not install an app that intercepts/reads my text messages.
cordova-plugin-sms is a good start if you haven’t looked at it already. One thing I am not sure though is listening for messages even when the app is not running?