capcom6 / android-sms-gateway

The SMS Gateway for Androidâ„¢ app enables sending and receiving SMS messages through an API that can be accessed directly on the device or via a cloud server when direct device access is not possible.
https://sms-gate.app
Apache License 2.0
201 stars 54 forks source link

Adding an API GET to read received SMS #16

Closed olaxe closed 3 months ago

olaxe commented 10 months ago

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.

capcom6 commented 10 months ago

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.

olaxe commented 10 months ago

many thanks for your consideration.

hsul4n commented 10 months ago

Will be very nice feature

olaxe commented 8 months ago

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.

rayenking commented 6 months ago

Yea waiting for this feature :"

capcom6 commented 3 months ago

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.