-
Notifications
You must be signed in to change notification settings - Fork 157
SMS deletion #33
Comments
Yes you can use SmsMessage.id to remove a specific message I working on message deletion, I will do it when I have time |
/flutter/.pub-cache/hosted/pub.dartlang.org/sms-0.2.2/android/src/main/java/com/babariviere/sms/telephony/TelephonyManager.java uses or overrides a deprecated API. |
which version of android are you using? |
I'm on Pie |
And there is already a broadcast receiver |
I'm a little confused about that, I know there's an Like any other SMS app I want to get the SMS when it comes while my application is closed, process it if I have to and show the user a notification. Also be able to make it the default app. |
I create a broadcast receiver, it should work in background. If it does not when you close the app it's because you have to spawn a background thread or launch your app on start |
Got it, will try something today. Also fetching all threads is slow cause of the |
You are right, I will optimize these things with my rewrite |
I have to manually append messages to a list since the queries aren't streams, is this desired behaviour? |
How are you using it ? It's a stream |
Stream is only provided by SmsReceiver. I want to be able to get an updated |
I may have to change some of my code to do this but if you want to implement it you can |
I'm good with Kotlin and Android, I was manually querying and built my app
in Android before this. It's been only a few days since I started Flutter,
so I'm not sure how to create plugins.
If I write the necessary code, will you be to do the plugin implementation?
That is if I'm not able to write the plugin implementation myself.
…On Fri, 28 Sep, 2018, 1:04 AM Bastien Rivière, ***@***.***> wrote:
I may have to change some of my code to do this but if you want to
implement it you can
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AbstFzc3XNQBOxQ-T3LsveFhO5LBEoxLks5ufSgzgaJpZM4W6ZRz>
.
|
Why not |
Library is great for querying, reading and sending messages but completely skipped deletion.
Also a broadcast receiver would be needed to show SMS notifications.
Could the
SmsMessage.id
be used to access the content provider to remove the specific message?Also was getting a deprecated notification for the Telephony Manager, not able to reproduce. Will add when I can.
The text was updated successfully, but these errors were encountered: