Comments (15)
Why not
from flutter_sms.
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.
/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.
which version of android are you using?
from flutter_sms.
I'm on Pie
from flutter_sms.
And there is already a broadcast receiver
from flutter_sms.
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.
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.
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.
You are right, I will optimize these things with my rewrite
from flutter_sms.
I have to manually append messages to a list since the queries aren't streams, is this desired behaviour?
from flutter_sms.
How are you using it ? It's a stream
from flutter_sms.
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.
I may have to change some of my code to do this but if you want to implement it you can
from flutter_sms.
from flutter_sms.
Related Issues (20)
- What about dual sim android if I want to send message from selected sim... HOT 5
- how to listen and read a futur sms HOT 12
- logo design contribution HOT 16
- Contact lookup appears to be failing (maybe just on M+?) HOT 3
- Error when trying to send message with no money on account HOT 4
- Send SMS Permisson Error HOT 10
- Complete rewrite in Kotlin HOT 4
- toString is not getting called on error objects present in print statement HOT 3
- Can this library create arbitrary SMS messages? HOT 35
- Update for Dart 2. HOT 1
- "Sent" messages are not being saved to phone when written directly [feature/smsdb] HOT 6
- We need integration tests
- Potential compatibility issues. HOT 6
- Cannot send using 2nd sim slot HOT 6
- How to determine if message failed in sending? HOT 4
- First access error HOT 1
- Seems to conflict with flutter_simple_permissions HOT 8
- Need update the plugin to dart sdk 2.1 HOT 5
- SMS is sent but it's not stored in the Database HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_sms.