shounakmulay / Telephony

Flutter plugin for telephony features like query device sms directory, listen for incoming messages, retrieve various network parameters, etc.
https://telephony.shounakmulay.dev
MIT License
138 stars 126 forks source link

getInboxSms() always returns SmsType.MESSAGE_TYPE_INBOX #117

Closed bzark closed 2 years ago

bzark commented 2 years ago

I'm assuming the SmsType enum is used to differentiate between a message you sent and a message you received. Correct me if I am wrong. But if not no matter what it always returns SmsType.MESSAGE_TYPE_INBOX for every message.

I wrote my own code in another Android project and I ran it on the same phone and I see it toggle between SmsType.MESSAGE_TYPE_INBOX and SmsType.MESSAGE_TYPE_SENT with the latter being one you send from the phone.

bzark commented 2 years ago

Blind me didn't even see the three different function calls getInboxSms getSentSms and getDraftSms. I see how it works now, sorry about filing this bug.