How to forward a SMS after having received it in the background?

no guys listen if you have a customer that have family and they all are partner in a company every transaction that send or phone payment give message transaction to just one number…
so if you want build an app that can analyze just the message of the transaction of the bank messages and forward them to more than one number… how would you build it!
(Thats the case)