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

Paginate listSMS results #63

Open
Kasendwa opened this issue Mar 14, 2017 · 4 comments
Open

Paginate listSMS results #63

Kasendwa opened this issue Mar 14, 2017 · 4 comments

Comments

@Kasendwa
Copy link

Hello. Thank you for the plugin. Very promising. I have an issue. I am failing to get desired results with the indexFrom and maxCount fields.

With indexFrom = 0, and maxCount = 1000, I was able to get 65messages under inbox. Everything works fine with indexFrom = 0. When I set it to any other value, it doesn't work.

My function below is supposed to paginate the results through iteration.

capture 2

It runs well for the first iteration (of course when indexFrom = 0 )

capture 3

However, the moment it ceases to be 0, no results are fetched. As shown in the console below.

capture

Any assistance in regard to this matter will be highly appreciated

@ashkan-xx
Copy link

same problem here

@Kiro705
Copy link

Kiro705 commented May 30, 2018

Any solution to this problem yet? Or work-arounds other than just grabbing a ton of sms at once?

Edit: Think I got a solution.

@ashkan-xx
Copy link

I actually emailed the project owner and asked him, when it's going to be solved. and he told me that this is an old project, he did when he was working with Cordova and probably it'd never going to be updated.

However, he told me that as we have the source, we can look into it ourselves and debug it.

@akashpjames
Copy link

@Kiro705 Thanks for fixing this. It's working perfectly. I couldn't figure out how to recompile the corodova plugin and I had to spend like 1 hour to figure that out. For those who want to fix this issue, go to plugins/cordova-sms-plugin in your repo and keep a copy of that in your system. Edit the changes as in the PR in your local copy of the plugin. Then remove the plugin from your corodova project using cordova plugin rm cordova-plugin-sms. After that, you have to add back the plugin from your local system like cordova plugin add ${path to your copied plugin with changes}. Then only the changes from this PR will be effective.

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