android-sms-gateway icon indicating copy to clipboard operation
android-sms-gateway copied to clipboard

Adding an API GET to read received SMS

Open olaxe opened this issue 2 years ago • 5 comments

Hello,

Thanks for your nice project. Do you think you can add an option to read received SMS? It is useful when someone answers to the automated SMS or to ask a question and retrieve automatically the answer.

olaxe avatar Nov 24 '23 08:11 olaxe

Hello,

Right now, this app is all about sending SMS. Receiving wasn't in the original plan, but I'll give it some thought.

Thank you for your suggestion.

capcom6 avatar Nov 24 '23 17:11 capcom6

many thanks for your consideration.

olaxe avatar Nov 25 '23 07:11 olaxe

Will be very nice feature

hsul4n avatar Nov 27 '23 19:11 hsul4n

I found this app in the meantime: https://github.com/bogkonstantin/android_income_sms_gateway_webhook It's fulfill my needs. I run both to have the way in and out.

olaxe avatar Feb 01 '24 08:02 olaxe

Yea waiting for this feature :"

rayenking avatar Mar 14 '24 09:03 rayenking

Good news, everyone!

I'm delighted to announce that the application now includes the capability to send webhooks when new SMS messages are received. This new feature is available for you to test from v1.15.0. The webhook functionality has been integrated into all operational modes: Local, Cloud, and Private.

Now, you might be wondering why I didn't just add a GET endpoint. There are a couple of solid reasons for this decision:

  1. Security is a top priority, and a GET endpoint could be accessed at any time, potentially exposing sensitive information. On the other hand, webhooks are pushed securely to your own server. Moreover, in Cloud mode, a GET endpoint would necessitate transferring all messages from your device to the Cloud server, raising significant privacy concerns.
  2. Efficiency is key in event-driven systems, such as SMS reception. Constantly polling a GET endpoint for new messages is resource-intensive, leading to unnecessary server load and increased battery consumption on the device. Webhooks, however, are event-driven and are triggered only when there is an actual new message, optimizing both server and device resources.

An example configuration for the webhook setup can be found at https://sms.capcom.me/getting-started/webhooks/. Rest assured, I'm working on crafting more comprehensive documentation to guide you through the process.

Thank you for your continued support, and I'm confident you'll find this new webhook feature to be a significant enhancement to your experience.

capcom6 avatar Jun 19 '24 00:06 capcom6