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.capcom.me
Apache License 2.0
132 stars 32 forks source link

send by sim2 #10

Closed mjheidari closed 7 months ago

mjheidari commented 7 months ago

how select sim for send?(sim1,sim2,..)

capcom6 commented 7 months ago

Thank you for reporting the issue. Currently, app does not support selecting a specific SIM for sending SMS messages. It always uses the default SIM card.

I will consider adding the SIM-selection feature in future versions of app to provide more flexibility.

Please stay tuned for updates. Thank you for your understanding and support!

capcom6 commented 7 months ago

Multiple SIM cards support added in https://github.com/capcom6/android-sms-gateway/releases/tag/v1.2.0 See simNumber field in request https://capcom6.github.io/android-sms-gateway/#/Messages/post-message

Example request:

curl -X POST \
    -u <username>:<password> \
    -H 'content-type: application/json' \
    https://sms.capcom.me/api/3rdparty/v1/message \
    -d '{
        "message": "Hello from SIM2",
        "phoneNumbers": ["79990001234"],
        "simNumber": 2
    }'