Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

body and indexFrom filter not working #35

Open
satyapriya opened this issue May 16, 2016 · 3 comments
Open

body and indexFrom filter not working #35

satyapriya opened this issue May 16, 2016 · 3 comments

Comments

@satyapriya
Copy link

satyapriya commented May 16, 2016

Hi floatinghotpot, I am trying to search content from sms inbox and I am having 1000 sms.

I am using the below filter as given in the doc but facing the below issues:

i. "body" filter is not working alone. While I am applying both "address" and "body" it is working as expected.
ii. When changing the index value of "indexFrom" filter from 0 to anyother value, it is returning zero result.

 var filter = {
                box : 'inbox', // 'inbox' (default), 'sent', 'draft', 'outbox', 'failed', 'queued', and '' for all
                address : '+8613601234567', // sender's phone number
                body : 'This is a test SMS', // content to match
                // following 2 filters can be used to list page up/down
                indexFrom : 0, // start from index 0
                maxCount : 10, // count of SMS to return each time
            }; 

I think this is the issue with the plugin. Please look into the issue and let me know.

@vikasprogrammer
Copy link

body search not working for me as well.

@Kasendwa
Copy link

Kasendwa commented Mar 14, 2017

True that @satyapriya. I receive 0 results everytime indexFrom > 0, too! Check my issue at #63

@lcamilo
Copy link

lcamilo commented Sep 10, 2018

Looking at the source code, the "body" property is used as exact match and not contained by SMS body. Look below:
matchFilter = fcontent.equals(cur.getString(cur.getColumnIndex(BODY)).trim());

@floatinghotpot Can you fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants