Git Product home page Git Product logo

backgroundsmsplugin's Introduction

  • 👋 Hi, I’m @shinewanna
  • 👀 I’m interested in Flutter Development(Android, iOS, Web), Android Native(Java)
  • 💞️ My journey is started from my second year of my university. I have been learned Java from my university when second year and I love to play with Java. Then, I decided to change my path that's Java to Native Android with Java. In third year, I learned and excuted projects with Native Android. Then, I started doing Flutter till now.
  • ✨ Visit my Portfolio and LinkedIn Profile to know more about my skills and services.
  • 📫 You can reach me by mailing at [email protected]

backgroundsmsplugin's People

Contributors

shinewanna avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

backgroundsmsplugin's Issues

Get real sending status and delivery status

Hi Dear,
Currently the service is giving sent status in all cases even if there is no sim card, I believe it's better to get the real status through intentPending interface.

Best regards,

Not working

var result = await BackgroundSms.sendMessage(
phoneNumber: "9xxxxxxxxx", message: "hello");
if (result == SmsStatus.sent) {
print("Sent");
} else {
print("Failed");
}

I added the permission in the android manifest still not working

W/System.err(10301): java.lang.SecurityException: Sending SMS message: uid 10909 does not have android.permission.SEND_SMS.
W/System.err(10301): at android.os.Parcel.createException(Parcel.java:2071)
W/System.err(10301): at android.os.Parcel.readException(Parcel.java:2039)
W/System.err(10301): at android.os.Parcel.readException(Parcel.java:1987)
W/System.err(10301): at com.android.internal.telephony.ISms$Stub$Proxy.sendTextForSubscriber(ISms.java:1684)
W/System.err(10301): at android.telephony.SmsManager$1.onSuccess(SmsManager.java:394)
W/System.err(10301): at android.telephony.SmsManager.sendResolverResult(SmsManager.java:1408)
W/System.err(10301): at android.telephony.SmsManager.resolveSubscriptionForOperation(SmsManager.java:1376)
W/System.err(10301): at android.telephony.SmsManager.sendTextMessageInternal(SmsManager.java:389)
W/System.err(10301): at android.telephony.SmsManager.sendTextMessage(SmsManager.java:362)
W/System.err(10301): at com.j.background_sms.BackgroundSmsPlugin.sendSMS(BackgroundSmsPlugin.java:82)
W/System.err(10301): at com.j.background_sms.BackgroundSmsPlugin.onMethodCall(BackgroundSmsPlugin.java:54)
W/System.err(10301): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
W/System.err(10301): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
W/System.err(10301): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818)
W/System.err(10301): at android.os.MessageQueue.nativePollOnce(Native Method)
W/System.err(10301): at android.os.MessageQueue.next(MessageQueue.java:336)
W/System.err(10301): at android.os.Looper.loop(Looper.java:197)
W/System.err(10301): at android.app.ActivityThread.main(ActivityThread.java:7500)
W/System.err(10301): at java.lang.reflect.Method.invoke(Native Method)
W/System.err(10301): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
W/System.err(10301): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
I/flutter (10301): PlatformException(Failed, Sms Not Sent, , null)

Unable to send SMS from Sim 2

Hi, I am unable to send SMS from SIM 2. SMS is always sending from sim 1.
_sendMessage("xxxxxxxxxxxx", "Hello Testing",simSlot: 2);

Background sending of SMS to foreign / abroad numbers

I'm unsure that this is a progamming related issue, but here goes. I've come across an issue where I'm unable to send SMS to numbers in foreign countries. Is that possible with background_sms?

I'm guessing this is prevented by default, in Android, because these messages usually incur additional costs for the sender. If so, is there a way to manually disable this on the phone doing the sending?

Long messages (multi messages greater than 160 characters) not being sent.

Hey I'm going to investigate it and hopefully come up with a solution, but when I try to send a message greater than 160 characters - one that would traditionally roll over to a new message but is invisible to us these days - it doesn't send but comes back with a success response.

Not sure what needs to be done to chain messages together but wanted to open the issue here so I can track any progress I make (if any!) or at least make it a known issue.

Found this wikipedia article that seems to outline the implementation required:
https://en.wikipedia.org/wiki/Concatenated_SMS

A problem when sending an SMS message in the Serbian language

Screenshot_1

  1. When I want to send a text message "srećni novogodišnji isrećni novogodišnjisrećni novogodišnjisrećni novogodišnjisrećni novogodišnjisrećni novogodišnjisrećni novogodišnji božićni praznici" return me the result sent and not the message was not sent .
    I think the problem is that the text uses the Serbian keyboard. And when I send the same message "srecni novogodissji isrecni novogodisnjisrecni novogodisnjisrecni novogodisnjisrecni novogodisnjisrecni novogodisnjisrecni novogodisnji bozicni praznic".
  2. Another problem is that when we write the phone number +38160sssss which is invalid, it returns the result that it has been sent

Please extend this plugin to support IOS

Dear developer,
I am very impressed with this package. Only drawback is I could not use it for IOS app development. I have a requirement to send messages in background without opening the messaging app.
Your plugin helped to achieve the feature in android app.
Would be great if you could extend this plugin to support IOS as well.

Deprecated API warning

when using the plugin, im getting Deprecation waring as below

Note: C:\flutter_windows_1.22.5-stable\flutter.pub-cache\hosted\pub.dartlang.org\background_sms-0.0.3\android\src\main\java\com\j\background_sms\BackgroundSmsPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

it would be helpful if the waring is resolved inorder to use the plugin longer,

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.