Giter Club home page Giter Club logo

Comments (15)

babariviere avatar babariviere commented on August 26, 2024 1

Why not

from flutter_sms.

babariviere avatar babariviere commented on August 26, 2024

Yes you can use SmsMessage.id to remove a specific message

I working on message deletion, I will do it when I have time

from flutter_sms.

chrisrohitbrendan avatar chrisrohitbrendan commented on August 26, 2024

/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.

from flutter_sms.

babariviere avatar babariviere commented on August 26, 2024

which version of android are you using?

from flutter_sms.

chrisrohitbrendan avatar chrisrohitbrendan commented on August 26, 2024

I'm on Pie

from flutter_sms.

babariviere avatar babariviere commented on August 26, 2024

And there is already a broadcast receiver

from flutter_sms.

chrisrohitbrendan avatar chrisrohitbrendan commented on August 26, 2024

I'm a little confused about that, I know there's an SmsReceiver() but isn't that useful only during the lifecycle of my application?

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.

from flutter_sms.

babariviere avatar babariviere commented on August 26, 2024

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

from flutter_sms.

chrisrohitbrendan avatar chrisrohitbrendan commented on August 26, 2024

Got it, will try something today. Also fetching all threads is slow cause of the findContact() call.
Would make sense to get threads, and then leave it to the consumer of your library to do a lookup for contact information

from flutter_sms.

babariviere avatar babariviere commented on August 26, 2024

You are right, I will optimize these things with my rewrite

from flutter_sms.

chrisrohitbrendan avatar chrisrohitbrendan commented on August 26, 2024

I have to manually append messages to a list since the queries aren't streams, is this desired behaviour?

from flutter_sms.

babariviere avatar babariviere commented on August 26, 2024

How are you using it ? It's a stream

from flutter_sms.

chrisrohitbrendan avatar chrisrohitbrendan commented on August 26, 2024

Stream is only provided by SmsReceiver.
Right now to get threads, I'm using queryThreads which returns a Future.

I want to be able to get an updated List<SmsThread> instead through a Stream that I can listen to.

from flutter_sms.

babariviere avatar babariviere commented on August 26, 2024

I may have to change some of my code to do this but if you want to implement it you can

from flutter_sms.

chrisrohitbrendan avatar chrisrohitbrendan commented on August 26, 2024

from flutter_sms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.