Skip to content

Commit be8daa8

Browse files
committed
[faq] add some Q&A regarding reading messages
1 parent 2b4e0a0 commit be8daa8

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

docs/faq/general.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ See also issue [#17](https://github.com/capcom6/android-sms-gateway/issues/17).
3131

3232
## How do I enable or disable delivery reports for messages?
3333

34-
As of version [1.3.0](https://github.com/capcom6/android-sms-gateway/releases/tag/v1.3.0), you have the option to enable or disable delivery reports for each message. By default, the delivery report feature is turned on. If you prefer not to receive delivery reports, you can disable them by setting the `withDeliveryReport` field to `false` in the JSON body of your message request. Here is an example of how to send a message without requesting a delivery report:
34+
As of version 1.3.0, you have the option to enable or disable delivery reports for each message. By default, the delivery report feature is turned on. If you prefer not to receive delivery reports, you can disable them by setting the `withDeliveryReport` field to `false` in the JSON body of your message request. Here is an example of how to send a message without requesting a delivery report:
3535

3636
```json
3737
{
@@ -43,7 +43,7 @@ As of version [1.3.0](https://github.com/capcom6/android-sms-gateway/releases/ta
4343

4444
## Can I use long or non-standard phone numbers?
4545

46-
Yes, starting from [1.6.1](https://github.com/capcom6/android-sms-gateway/releases/tag/v1.6.1) of the app, our system allows the use of long or non-standard phone numbers, which may be common with M2M (machine-to-machine) SIM cards or other special cases. To bypass the standard phone number validation, simply add the query parameter `skipPhoneValidation=true` to your API request. Please note that with validation disabled, you are responsible for ensuring the correctness of the phone numbers. They should still follow the E.164 format, beginning with a '+' and containing only digits.
46+
Yes, starting from 1.6.1 of the app, our system allows the use of long or non-standard phone numbers, which may be common with M2M (machine-to-machine) SIM cards or other special cases. To bypass the standard phone number validation, simply add the query parameter `skipPhoneValidation=true` to your API request. Please note that with validation disabled, you are responsible for ensuring the correctness of the phone numbers. They should still follow the E.164 format, beginning with a '+' and containing only digits.
4747

4848
## How can I avoid mobile operator restrictions?
4949

docs/faq/reading-messages.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# FAQ - Reading Messages
2+
3+
The main article about reading messages is located [here](../features/reading-messages.md).
4+
5+
## Can I get incoming messages?
6+
7+
Yes, you can get incoming messages asynchronously via the `sms:received` webhook in two ways:
8+
9+
1. Any new incoming message will trigger the `sms:received` webhook by default.
10+
2. For retrieving previously received messages, the `POST /messages/inbox/export` request can be used.
11+
12+
## Can I use a `GET` request to read messages?
13+
14+
No, synchronous reading of messages is not supported due to privacy policy.
15+
16+
One of the goals of the app is to maintain the same API for any mode. To implement this kind of endpoint in Cloud mode, the application would need to upload all messages from the device to the server. However, storing all of the messages of all users on the server is not secure with the current app design. We're working on additional security measures that will allow this type of access to the messages with a sufficient privacy level, but there is no timeline for this feature.

mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ nav:
5353
- Encryption: privacy/encryption.md
5454
- FAQ:
5555
- General: faq/general.md
56-
- Errors: faq/errors.md
5756
- Webhooks: faq/webhooks.md
57+
- Reading Messages: faq/reading-messages.md
58+
- Errors: faq/errors.md
5859
- Resources:
5960
- Examples: resources/examples.md
6061
- Third-Party: resources/3rdparty.md

0 commit comments

Comments
 (0)