Giter Club home page Giter Club logo

Comments (35)

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 26, 2024 1

Ok, thank you. Maybe I'll submit a PR for the docs when I figure it out.

from flutter_sms.

babariviere avatar babariviere commented on August 26, 2024 1

I will do it today

from flutter_sms.

babariviere avatar babariviere commented on August 26, 2024 1

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.

babariviere avatar babariviere commented on August 26, 2024

Yes you can, just create SMS via it's data structure

from flutter_sms.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 26, 2024

I have updated the question. I created the SmsMessages and the SmsThreads, but I need to save them to the phone now.

from flutter_sms.

babariviere avatar babariviere commented on August 26, 2024

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.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 26, 2024

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.

babariviere avatar babariviere commented on August 26, 2024

Just use my method and use an encoder of your choice from other lib

from flutter_sms.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 26, 2024

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.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 26, 2024

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.
screenshot_20180905-131715_chrome

from flutter_sms.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 26, 2024

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.

babariviere avatar babariviere commented on August 26, 2024

See exemple at this link https://flutter.io/json/

from flutter_sms.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 26, 2024

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.

babariviere avatar babariviere commented on August 26, 2024

He supports writing them otherwise you can't send one

from flutter_sms.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 26, 2024

I do see your SMS permissions in the app settings

from flutter_sms.

babariviere avatar babariviere commented on August 26, 2024

You can create message like that:

SmsMessage msg = new SmsMessage ('address', 'body')

from flutter_sms.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 26, 2024

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.

babariviere avatar babariviere commented on August 26, 2024

Oh I understand what you mean

from flutter_sms.

babariviere avatar babariviere commented on August 26, 2024

I will try to implement it

from flutter_sms.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 26, 2024

Thank you! I'll wait for your implementation.

from flutter_sms.

babariviere avatar babariviere commented on August 26, 2024

You should try to implement it on your side, I don't have a lot of free time to do this

from flutter_sms.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 26, 2024

from flutter_sms.

babariviere avatar babariviere commented on August 26, 2024

You can train yourself, it will not be a waste of time

from flutter_sms.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 26, 2024

from flutter_sms.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 26, 2024

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.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 26, 2024

from flutter_sms.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 26, 2024

from flutter_sms.

babariviere avatar babariviere commented on August 26, 2024

no problem

from flutter_sms.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 26, 2024

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.

babariviere avatar babariviere commented on August 26, 2024

I will take a look

from flutter_sms.

babariviere avatar babariviere commented on August 26, 2024

Can you give me more log? I cannot find the error and it's not what I was thinking

from flutter_sms.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 26, 2024

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

babariviere avatar babariviere commented on August 26, 2024

Oh yeah nice catch 😀

from flutter_sms.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 26, 2024

from flutter_sms.

ThinkDigitalSoftware avatar ThinkDigitalSoftware commented on August 26, 2024

Feature added 408f8a2

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.