Comments (35)
Ok, thank you. Maybe I'll submit a PR for the docs when I figure it out.
from flutter_sms.
I will do it today
from flutter_sms.
I have implemented something for now, just use the version in the branch feature/smsdb
.
You will need to set your app as the default sms app. I will handle this later but before I want to finish my rewrite in kotlin
from flutter_sms.
Yes you can, just create SMS via it's data structure
from flutter_sms.
I have updated the question. I created the SmsMessage
s and the SmsThread
s, but I need to save them to the phone now.
from flutter_sms.
You can save them in a file or in a database.
If you want in a file you can use SmsMessage.toMap
and it will return a Map
from flutter_sms.
I'm specifically trying to write them to the phone. Like SMS backup and Restore. My app is going to restore messages from a file to the phone
from flutter_sms.
Just use my method and use an encoder of your choice from other lib
from flutter_sms.
This plugin doesn't currently support it. I'm researching how to make my own, or see if I can add it to this one. Would you be interested in adding it?
from flutter_sms.
Encode it? How will I get it to the phone? From what I've been seeing the past few years, you need to request a certain access.
from flutter_sms.
Oh, yes, that's what I'm going to do. Create the text messages and then write a library, or port one, that will import the messages to the phone.
from flutter_sms.
See exemple at this link https://flutter.io/json/
from flutter_sms.
I get encoding. My issue is that I need to turn these into native text messages that the user can browse through in their native sms app. From what I'm understanding, this plugin supports sending sms, and reading received sms, but not writing them. That, from what I read, requires permissions only granted to a default sms app.
from flutter_sms.
He supports writing them otherwise you can't send one
from flutter_sms.
I do see your SMS permissions in the app settings
from flutter_sms.
You can create message like that:
SmsMessage msg = new SmsMessage ('address', 'body')
from flutter_sms.
I have that part, and I can display them in my app, but It's not in the default message program in the phone
from flutter_sms.
Oh I understand what you mean
from flutter_sms.
I will try to implement it
from flutter_sms.
Thank you! I'll wait for your implementation.
from flutter_sms.
You should try to implement it on your side, I don't have a lot of free time to do this
from flutter_sms.
from flutter_sms.
You can train yourself, it will not be a waste of time
from flutter_sms.
from flutter_sms.
Just an update, I'm having some issue getting this started. If you had enough time to start on it, I wouldn't mind adding to the basics
from flutter_sms.
from flutter_sms.
from flutter_sms.
no problem
from flutter_sms.
I FINALLY got SMS permissions working in my app. But when I run the SmsDb.insert()
method, it fails with a not implemented error.
No implementation found for method insert on channel plugins.babariviere.com/smsDb
I see the method present in the SmsDb class, but I don't think it's getting reached. I put a log in there and it doesn't seem to fire.
from flutter_sms.
I will take a look
from flutter_sms.
Can you give me more log? I cannot find the error and it's not what I was thinking
from flutter_sms.
@babariviere I got it. I had to change it to
if (methodCall.method.equals("insert")) {
I'm going to make a pull request.
from flutter_sms.
Oh yeah nice catch 😀
from flutter_sms.
from flutter_sms.
Feature added 408f8a2
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
- 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
- SMS deletion HOT 15
- 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.