jgithaiga / flutter_sms_inbox

Flutter SMS Inbox (Android only)
MIT License
15 stars 17 forks source link

Return filtering Query #13

Closed AbodiSadiqGitHub closed 2 years ago

AbodiSadiqGitHub commented 2 years ago

I want to filter query, for example: every five second I want to select the messages that starts with 'word'. how can i do that?

thanks in advance.

jgithaiga commented 2 years ago

On the current implementation, the package's query support (querySms(...)) is limited to address, threadId, and kind. You can however fetch all/some messages and filter the returned list using dart list operations.

AbodiSadiqGitHub commented 2 years ago

Thanks for answer, I will do like you said. Now, I want to get sender name not phone number. Is it possible?

jgithaiga commented 2 years ago

For that, please check out this package: https://pub.dev/packages/sms_advanced