Reputation: 13
I am using httpSMS (also tried SMSGateway) to turn my phone into a gateway that can send and receive SMS.
The "send" functionality is working fine. I make a post request to an endpoint and then a message is sent.
The problem is that the receive functionality is not working. These apps are supposed to call a Webhook (url provided by you) and do a POST request on that Webhook whenever a new sms is received. So I expose my localhost using ngrok and receive SMS at some endpoint. The problem is that the Webhook ONLY triggers when I receive messages from sources like the bank or my service provider. Other messages do not trigger the Webhook.
Any help would be appreciated.
httpsms: https://docs.httpsms.com/webhooks/introduction
android sms gateway api: https://capcom6.github.io/android-sms-gateway/#/
Upvotes: 0
Views: 26
Reputation: 13
I got the answer to my question. For future reference, this is it:
The messages sent by banks, service providers etc are sent via SMS
whereas
The messages by other peers are sent via RCS
RCS is an internet-based messaging protocol (like WhatsApp) that works through Google's Messages app and similar platforms. Unlike SMS, RCS messages are not processed through the standard SMS gateway, which means HTTPSMS (and others) won't detect them. When the sender's internet is off, their phone falls back to SMS, allowing HTTPSMS to capture it.
So, the solution is to ask the sender to switch off their internet before sending messages
Upvotes: 0