Closed paurakhsharma closed 5 years ago
Hi @paurakhsharma.
Thanks for including the code that you are using.
Could you try omitting the read: 1
and using address: 'NICA_ALERT'
only? Something like this:
var filter = {
box: 'inbox', // 'inbox' (default), 'sent', 'draft', 'outbox', 'failed', 'queued', and '' for all
// the next 4 filters should NOT be used together, they are OR-ed so pick one
// _id: 1061, // specify the msg id
address: 'NICA_ALERT', // sender's phone number
indexFrom: 0, // start from index 0
maxCount: 100, // count of SMS to return each time
};
This is because of this condition when creating the filter -- the next 4 filters should NOT be used together, they are OR-ed so pick one
Sorry, I didn't read the commented documentation carefully. It works. Thank you so much.
No worries at all. :)
This is how my dependencies looks like
I have the following filter
I want to get only the SMS send from
NICA_ALERT
but I get other messages that is not set byNICA_ALERT
Here is how I have implemented the code
Expected
To get only messages from
NICA_ALERT
Actual
Got messages from other senders aswell.