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
136 stars 33 forks source link

multiple SMS simultaneously, #91

Closed watata84 closed 3 days ago

watata84 commented 1 week ago

Describe the Bug When sending multiple SMS simultaneously, a popup appears asking for permission to send messages, despite having changed the settings to allow premium SMS and not ask for permission.

To Reproduce Steps to reproduce the behavior:

Send request to API: POST /send-sms with payload:

{
  "phone_number": "+1234567890",
  "message": "Test message"
}

Send multiple SMS simultaneously. See error: a popup appears asking for permission to send messages. Expected vs Actual Behavior

Expected: SMS should be sent without any permission prompt, as the settings have been changed to allow premium SMS and not ask for permission. Actual: A popup appears asking for permission to send messages every time multiple SMS are sent simultaneously.

Environment

App Version: 1.15.3 Mode: Private Operation: Sending SMS Network Type: WiFi Smartphone motog51

Device: Motorola G51 OS: Android 11 Additional Context I have already changed the settings to allow premium SMS and not to ask for permission, but the popup still appears every time I send multiple SMS simultaneously.

capcom6 commented 1 week ago

Hello, @watata84

Could you please provide a screenshot of the message you're receiving?

It appears there might be a misunderstanding regarding the request format. According to the documentation, the correct field for specifying phone numbers is phoneNumbers as an array, not phone_number. And there is no /send-sms endpoint. You can find more details here: https://capcom6.github.io/android-sms-gateway/#/Messages/post-messages. To clarify, when you mention sending multiple SMS simultaneously, are you referring to including multiple numbers in the phoneNumbers array within a single request, or are you sending multiple requests each with a single phone number?

Additionally, have you followed the steps outlined in https://sms.capcom.me/faq/errors/#result_error_limit_exceeded-error including https://www.xda-developers.com/change-sms-limit-android/ to modify SMS sending limits on your device?

watata84 commented 1 week ago

Thank you for your response.

I have followed the steps outlined in the provided documentation to change the SMS sending limits on my device. Specifically, I modified the SMS limit using the instructions from XDA Developers. However, despite these changes, I am still receiving a notification indicating that an application is attempting to send too many SMS.

It appears that the configuration change did not resolve the issue. I am still seeing a message that says an application is trying to send multiple SMS. To provide more context, I am using a Python script that sends many SMS messages, but each message is sent to a different phone number.

Could you provide further guidance or suggest additional steps I might take to address this?

I greatly appreciate your attention and I highly value the work you do.

Thank you for your assistance.

capcom6 commented 1 week ago

Thank you for your detailed response and for following the steps to address the issue.

It seems there might be a misunderstanding regarding the request format for sending SMS through our service. Based on your description, it's important to ensure that the request adheres to the expected structure. Could you kindly provide a valid example of the request you are using?

Additionally, could you please provide the following information:

This information will greatly aid in diagnosing and potentially resolving the issue at hand.

capcom6 commented 3 days ago

Hello!

Unfortunately, I didn't receive your answer, so I'll close the issue. However, please feel free to open a new one if you have any further questions.