Giter Club home page Giter Club logo

Comments (6)

babariviere avatar babariviere commented on August 26, 2024

Are you using the function onSmsDelivered?

from flutter_sms.

babariviere avatar babariviere commented on August 26, 2024

I've pushed a fix, this should be good now. Reopen if not

from flutter_sms.

litzbalane2017 avatar litzbalane2017 commented on August 26, 2024

Are you using the function onSmsDelivered?

No. I am not using that function.

I've pushed a fix, this should be good now. Reopen if not

I've tested it and still messages are not sent via 2nd sim slot. I am getting the following error messages and incorrect message.onStateChanged saying the SMS was sent.

D/flutter_sms(21885): Sent result: SmsManager.RESULT_ERROR_GENERIC_FAILURE
I/flutter (21885): SMS is sent!`

from flutter_sms.

babariviere avatar babariviere commented on August 26, 2024

You have this error because you're second sim card cannot send SMS

from flutter_sms.

litzbalane2017 avatar litzbalane2017 commented on August 26, 2024

I see. It seems to just preferring to send with a particular sim card, even if I try to switch the default sim for text. It will find it and send it with sender.sendSms(message, simCard: card.first); even if I put it on either slot 1 or slot 2.

I then tried using other sim cards without the preferred one, the same message appears and now I cannot send on both sender.sendSms(message, simCard: card.first); or sender.sendSms(message, simCard: card.last);:

D/flutter_sms(21885): Sent result: SmsManager.RESULT_ERROR_GENERIC_FAILURE
I/flutter (21885): SMS is sent!`

Not sure how this is still happening, since all sim cards work perfectly fine if I do not use a simcard parameter in sender.sendSms(message);

from flutter_sms.

babariviere avatar babariviere commented on August 26, 2024

I can't find where is the issue, if I found how to fix I will ping you

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.