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

on/off delivery report status #19

Closed mjheidari closed 9 months ago

mjheidari commented 10 months ago

add option to off/on delivery report

capcom6 commented 10 months ago

Hello!

I'm currently working on a new version that includes the option to disable delivery reports. However, could you provide a bit more detail on your situation? Are these reports something your mobile operator charges for?

Also, if I provide a test build, would you be willing to give it a try? Since my local operators don't charge for delivery reports, I'd appreciate your help in verifying that the feature works correctly on your end.

Thanks.

capcom6 commented 9 months ago

Hello, @mjheidari !

You can now disable delivery reports in version 1.3.0 by including "withDeliveryReport": false in the request body.

For example:

curl --request POST \
  --url https://sms.capcom.me/api/3rdparty/v1/message \
  --header 'authorization: Basic <credentials>' \
  --header 'content-type: application/json' \
  --data '{"message": "Message without delivery report","phoneNumbers": ["+79990001234"],"withDeliveryReport": false}'

Please try it out and let me know if you encounter any issues!