Flutter Plugin for sending SMS and MMS on Android and iOS.

Overview

Flutter Community: flutter_sms

Buy Me A Coffee Donate github pages GitHub stars flutter_sms

flutter_sms

alt-text-1

Online Demo: https://fluttercommunity.github.io/flutter_sms/

Description

Flutter Plugin for sending SMS and MMS on Android and iOS. If you send to more than one person it will send as MMS. On the iOS if the number is an iPhone and iMessage is enabled it will send as an iMessage.

How To Use

You can send multiple ways:

  1. Message and No People
  2. People and No Message
  3. Message and People

This will populate the correct fields.

Example

Make sure to Install and Import the Package.

import 'package:flutter_sms/flutter_sms.dart';

Create a function for sending messages.

void _sendSMS(String message, List<String> recipents) async {
 String _result = await sendSMS(message: message, recipients: recipents)
        .catchError((onError) {
      print(onError);
    });
print(_result);
}

You can quickly send the message with this function.

recipents = ["1234567890", "5556787676"]; _sendSMS(message, recipents);">
String message = "This is a test message!";
List<String> recipents = ["1234567890", "5556787676"];

_sendSMS(message, recipents);

Screenshots

iOS SMS Android MMS
alt-text-1 alt-text-2

You can find other screenshots here.

Comments
  • Android build fails due to

    Android build fails due to "import 'dart:html'"

    Building flutter_sms: ^2.0.1+2 for Android fails with the following message:

    Compiler message:
    ../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.0.1+2/lib/src/flutter_sms_platform.dart:3:8: Error: Not found: 'dart:html' import 'dart:html' as html;
    ^

    Flutter doctor:

    Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel beta, v1.17.0, on Mac OS X 10.15.3 19D76, locale en-GB) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [✓] Xcode - develop for iOS and macOS (Xcode 11.4) [✓] Chrome - develop for the web [✓] Android Studio (version 3.6) [✓] Connected device (2 available)

    • No issues found!

    opened by PerLycke 15
  • Update dependancies versions

    Update dependancies versions

    Hello, I updated the dependancies versions to be able to use flutter_sms in confunction with new firebase plugins versions. I also fixed the deprecated RaisedButton usage in example and a double import.

    opened by tlkops 13
  • Cant build ios app - `SWIFT_VERSION` issue

    Cant build ios app - `SWIFT_VERSION` issue

    Hello!

    Everything works on Android but on iOS I cant build the project. There's an issue with the swift version, this is the output I get:

          - Running pre install hooks
        [!] Unable to determine Swift version for the following pods:
    
        - `flutter_sms` does not specify a Swift version and none of the targets (`Runner`) integrating it have the
        `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the
        targets that integrate this pod.
    
        /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/installer/xcode/target_validator.rb:122:in
        `verify_swift_pods_swift_version'
        /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/installer/xcode/target_validator.rb:37:in `validate!'
        /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/installer.rb:578:in `validate_targets'
        /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/installer.rb:158:in `install!'
        /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/command/install.rb:51:in `run'
        /Library/Ruby/Gems/2.3.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
        /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/command.rb:52:in `run'
        /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/bin/pod:55:in `<top (required)>'
        /usr/local/bin/pod:22:in `load'
        /usr/local/bin/pod:22:in `<main>'
    

    I found a potential answer here, followed the steps but I still cant build the ios app because of this plugin. Any suggestions?

    good first issue 
    opened by k00na 7
  • changed dart:html to use flutter_user_agent instead

    changed dart:html to use flutter_user_agent instead

    dart:html is incompatible with mobile, so I switched it out for flutter_user_agent since it seems to provide the user agent info you are looking for. I'm not sure what web support you are looking for though, as I don't see much need to use this plugin for a web deployment.

    opened by knyghtryda 6
  • sendSMS change result to enum instead of string

    sendSMS change result to enum instead of string

    I noticed you return a Future<String> from sendSMS. What do you think about changing to Future<SendResult>.

    String _result = await FlutterSms.sendSMS(message: "yo dawg", recipients: ["1234567890"]);
    print("Result is: $_result");
    if (_result == "not clear what the result options are") {
    // stuff
    }
    

    to

    SendResult _result = await FlutterSms.sendSMS(message: "yo dawg", recipients: ["1234567890"]);
    print("Result is: $_result");
    if (_result == SendResult.success) {
    // stuff
    }
    

    Doing something like SendResult.success would allow pushing the string comparison down into your library and consumers have an easier interface with the enums to determine the result. I'd be happy to implement this if you agree.

    enhancement 
    opened by kmcgill88 5
  • Migrated to android v2 embedding

    Migrated to android v2 embedding

    This PR migrates the android plugin to use the V2 embedding since the V1 embedding will be deprecated soon and recent Flutter versions are now displaying a warning when building with this plugin.

    Closes #48

    opened by acoutts 4
  • Android embedding warning on Flutter Master branch

    Android embedding warning on Flutter Master branch

    The plugins flutter_sms use a deprecated version of the Android embedding.

    To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing them since a future release of Flutter will remove these deprecated APIs. If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

    [✓] Flutter (Channel master, 2.4.0-5.0.pre.144, on macOS 11.4 20F71 darwin-x64,
        locale en-ZA)
        • Flutter version 2.4.0-5.0.pre.144 at /Users/theunodebruin/flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 7f26dbe0d4 (46 minutes ago), 2021-07-21 21:51:06 -0700
        • Engine revision 2c9000e28c
        • Dart version 2.14.0 (build 2.14.0-341.0.dev)
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
        • Android SDK at /Users/theunodebruin/Library/Android/sdk
        • Platform android-30, build-tools 30.0.2
        • Java binary at: /Users/theunodebruin/Library/Application
          Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7486908/Android
          Studio.app/Contents/jre/jdk/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Xcode 12.5.1, Build version 12E507
        • CocoaPods version 1.10.1
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 4.2)
        • Android Studio at /Users/theunodebruin/Library/Application
          Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7486908/Android
          Studio.app/Contents
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    
    [✓] Android Studio (version 4.2)
        • Android Studio at /Users/theunodebruin/Library/Application
          Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7486908/Android
          Studio.app/Contents
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    
    [✓] IntelliJ IDEA Ultimate Edition (version 2021.1.3)
        • IntelliJ at /Users/theunodebruin/Applications/JetBrains Toolbox/IntelliJ
          IDEA Ultimate.app
        • Flutter plugin version 58.0.3
        • Dart plugin version 211.7727
    
    [✓] IntelliJ IDEA Ultimate Edition (version 2021.1.3)
        • IntelliJ at /Users/theunodebruin/Library/Application
          Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/211.7628.21/IntelliJ IDEA.app
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
    
    [✓] Connected device (2 available)
        • iPhone 12 Pro Max (mobile) • 903ED170-BCC4-482B-814A-DBBACD7A0FDE • ios
          • com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
        • Chrome (web)               • chrome                               •
          web-javascript • Google Chrome 91.0.4472.164
    
    • No issues found!
    
    
    opened by Theunodb 4
  • Import error

    Import error

    I'm trying to use the package, but after configuring and importing the package when I try to run the app the message appears:

    /C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.0.1+2/lib/src/flutter_sms_platform.dart:3:8: Error: Not found: 'dart: html' import 'dart: html' as html;

    opened by guilhermecarvalhocarneiro 4
  • Android always says

    Android always says "SMS Sent!"

    On iOS when I try to send a message I receive as a result either "sent" or "cancelled" but when on Android I always get "SMS Sent!" no matter what I do.

    opened by lauralarez 4
  • _sendSMS does not send the sms/mms, only loads into the phone's message app.

    _sendSMS does not send the sms/mms, only loads into the phone's message app.

    This plugin is great!

    I only have one questions: The _sendSMS method does not actually send the message to the recipients. It only loads the message and recipients into the Android message app, ready for sending. The user has to manually send the message. Is this by design? I need the message to be sent automatically, without any user intervention...

    opened by pahoel 3
  • duplicate message

    duplicate message

    Hi! In Android 8, the message that arrives at the sms application is duplicated (it appears twice the initially set message). On Android 9 and 10 is ok.

    It may have something to do with putting twice the message in the intent.putExtra:

    private fun sendSMS(result: Result, phones: String?, message: String?) {
        val intent = Intent(Intent.ACTION_SENDTO)
        intent.data = Uri.parse("smsto:$phones")
        intent.putExtra("sms_body", message)
        intent.putExtra(Intent.EXTRA_TEXT, message)
        activity?.startActivityForResult(intent, REQUEST_CODE_SEND_SMS)
    
      }
    enhancement 
    opened by sd-timaru 3
  • Android: Not compatible with kotlin-gradle-plugin 1.7.xx version

    Android: Not compatible with kotlin-gradle-plugin 1.7.xx version

    My kotlin-gradle-plugin version is 1.7.20 and is not not compatible Please update kotlin-gradle-plugin version in android

    The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
    The following dependencies do not satisfy the required version:
    project ':flutter_sms' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50
    
    opened by ARASHz4 1
  • cannot send SMS while in background

    cannot send SMS while in background

    This is my code: print("Handling a background message: ${message.messageId}"); print('Message data: ${message.data}'); String mobile = message.data['mobile_numbers']; FCM.mobile = mobile.split(','); FCM.message = message.data['message']; await sendSMS(message: FCM.message, recipients: FCM.mobile, sendDirect: true);

    and the error is: E/MethodChannel#flutter_sms(12626): Failed to handle method call E/MethodChannel#flutter_sms(12626): java.lang.NullPointerException E/MethodChannel#flutter_sms(12626): at com.example.flutter_sms.FlutterSmsPlugin.canSendSMS(FlutterSmsPlugin.kt:95) E/MethodChannel#flutter_sms(12626): at com.example.flutter_sms.FlutterSmsPlugin.onMethodCall(FlutterSmsPlugin.kt:76) E/MethodChannel#flutter_sms(12626): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262) E/MethodChannel#flutter_sms(12626): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295) E/MethodChannel#flutter_sms(12626): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319) E/MethodChannel#flutter_sms(12626): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12) E/MethodChannel#flutter_sms(12626): at android.os.Handler.handleCallback(Handler.java:883) E/MethodChannel#flutter_sms(12626): at android.os.Handler.dispatchMessage(Handler.java:100) E/MethodChannel#flutter_sms(12626): at android.os.Looper.loop(Looper.java:224) E/MethodChannel#flutter_sms(12626): at android.app.ActivityThread.main(ActivityThread.java:7562) E/MethodChannel#flutter_sms(12626): at java.lang.reflect.Method.invoke(Native Method) E/MethodChannel#flutter_sms(12626): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) E/MethodChannel#flutter_sms(12626): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950) I/flutter (12626): FlutterFire Messaging: An error occurred in your background messaging handler: I/flutter (12626): PlatformException(error, null, null, java.lang.NullPointerException I/flutter (12626): at com.example.flutter_sms.FlutterSmsPlugin.canSendSMS(FlutterSmsPlugin.kt:95) I/flutter (12626): at com.example.flutter_sms.FlutterSmsPlugin.onMethodCall(FlutterSmsPlugin.kt:76) I/flutter (12626): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262) I/flutter (12626): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295) I/flutter (12626): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319) I/flutter (12626): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12) I/flutter (12626): at android.os.Handler.handleCallback(Handler.java:883) I/flutter (12626): at android.os.Handler.dispatchMessage(Handler.java:100) I/flutter (12626): at android.os.Looper.loop(Looper.java:224) I/flutter (12626): at android.app.ActivityThread.main(ActivityThread.java:7562) I/flutter (12626): at java.lang.reflect.Method.invoke(Native Method) I/flutter (12626): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.j

    opened by GokulakrishnanV 1
  • Project fails to when a flutter module depends on it

    Project fails to when a flutter module depends on it

    To reproduce:

    • Create a new "flutter module"
    • depend on flutter-sms
    • try to run flutter build aar
    e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
    e: /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/095f7a2bff526ae90c824eb73c15302a/jetified-kotlinx-coroutines-android-1.5.2.jar!/META-INF/kotlinx-coroutines-android.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    e: /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/325857b14eafda42f6ebd6ed8a130644/jetified-window-1.0.0-beta04-api.jar!/META-INF/window_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    e: /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/35a54be3f0ff5b406b46c3399384ac55/jetified-kotlin-stdlib-jdk7-1.5.30.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    e: /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/7deeafea6d161ff761d4ca76f8dcca61/jetified-kotlin-stdlib-jdk8-1.5.30.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    e: /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/ae7d3805d00abe8151ad445b4c4e1688/jetified-kotlin-stdlib-common-1.5.31.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    e: /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/b7eb4c7d400c07c4717df481e3ba4ffd/jetified-window-java-1.0.0-beta04-api.jar!/META-INF/window-java_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    e: /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d54167437c933767a9a5f422140c1c39/jetified-kotlinx-coroutines-core-jvm-1.5.2.jar!/META-INF/kotlinx-coroutines-core.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    e: /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (30, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (34, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (38, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (42, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (46, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (50, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (54, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (55, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (59, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (65, 6): Class 'kotlin.jvm.JvmStatic' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/jvm/JvmStatic.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (68, 12): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (69, 12): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (74, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (77, 20): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (86, 11): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (88, 32): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (89, 24): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (98, 12): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (104, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (105, 7): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (108, 7): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (116, 26): Unresolved reference: split
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (119, 56): Unresolved reference: toByteArray
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (120, 7): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (120, 19): Unresolved reference: toByteArray
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (122, 21): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (124, 21): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (128, 12): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (133, 12): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (136, 15): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    e: /Users/sanniprasad/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.3.3/android/src/main/kotlin/com/example/flutter_sms/FlutterSmsPlugin.kt: (137, 12): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
    The class is loaded from /Users/sanniprasad/.gradle/caches/transforms-2/files-2.1/d661f32da69dea35c8d36328ff95610e/jetified-kotlin-stdlib-1.5.31.jar!/kotlin/Unit.class
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':flutter_sms:compileDebugKotlin'.
    > Compilation error. See log for more details
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Get more help at https://help.gradle.org
    
    BUILD FAILED in 21s```
    
    Flutter doctor output
    
    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel stable, 3.0.5, on macOS 12.4 21F79 darwin-arm, locale en-IN)
    [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc2)
    [✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    [✓] Chrome - develop for the web
    [✓] Android Studio (version 2021.2)
    [✓] IntelliJ IDEA Community Edition (version 2022.1.4)
    [✓] VS Code (version 1.69.2)
    [✓] Connected device (2 available)
    [✓] HTTP Host Availability
    
    • No issues found!
    opened by prasadsunny1 0
  • [ANDROID] Fix send direct messages issue.

    [ANDROID] Fix send direct messages issue.

    The library doesn't allow you to send direct messages if the device does not have an app to send SMS. However, you don't need an app to send direct sms

    opened by mirland 1
  • Get failed callback on iOS

    Get failed callback on iOS

    I am trying to send a message using this package, but due to some carrier issue message dosent get sent. In this case, the callback I am getting from the sendSMS() is "sent" instead of "failed".

    OS : iOS 15.5

    can someone please let me know how I can get the failed state as a callback?

    opened by infiniteoverflow 0
Releases(2.0.0)
Owner
Flutter Community
A central place for all community made Flutter packages. To get started, see the README of the 'community' repository.
Flutter Community
Flutter library for sending bytes to Bluetooth devices on Android/iOS

fluetooth A new flutter plugin project. Getting Started This project is a starting point for a Flutter plug-in package, a specialized package that inc

Iandi Santulus 1 Jan 2, 2022
Flutter plugin that implements Android's SMS User Consent API

sms_user_consent Request user's phone number (supports dual sim) and/or consent to read SMS without adding any permissions, using Android's SMS User C

null 8 Sep 7, 2022
A Flutter application which keeps track your water intake and remind you to drink water by sending notification

Drinkable ?? Drinkable ?? Built with ❤︎ by Akash Debnath Drinkable is a Flutter App powered by Firebase to keep track your daily water intake and remi

Akash Debnath 40 Nov 29, 2022
Flutter package for listening SMS code on Android, suggesting phone number, email, saving a credential.

Flutter Smart Auth From Tornike & Great Contributors Flutter package for listening SMS code on Android, suggesting phone number, email, saving a crede

Tornike 16 Jan 1, 2023
SMS Receiver Channel For Android

SMS Receiver Channel SMS Receiver Channel For Android Getting Started Use channel on the client_side (flutter) and the platform_side (android) and inv

Niloofar Amerian 2 Nov 3, 2022
Home app - A dynamic flutter app which can be used to generate alerts, set alarms and send sms or call someone

first_app A dynamic flutter app which can be used to generate alerts, set alarms

null 0 Apr 9, 2022
Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.

Flutter permission_handler plugin The Flutter permission_handler plugin is build following the federated plugin architecture. A detailed explanation o

Baseflow 1.7k Dec 31, 2022
Klutter plugin makes it possible to write a Flutter plugin for both Android and iOS using Kotlin only.

The Klutter Framework makes it possible to write a Flutter plugin for both Android and iOS using Kotlin Multiplatform. Instead of writing platform spe

Gillian 33 Dec 18, 2022
WooCommerce App template that uses Flutter. Integrated to work with WooCommerce stores, connect and create an IOS and Android app from Flutter for IOS and Android

WooCommerce App: Label StoreMax Label StoreMax - v5.3.1 Official WooSignal WooCommerce App About Label StoreMax Label StoreMax is an App Template for

WooSignal 314 Jan 9, 2023
Flutterbodydetection - A flutter plugin that uses MLKit on iOS/Android platforms to enable body pose and mask detection using Pose Detection and Selfie Segmentation APIs for both static images and live camera stream.

body_detection A flutter plugin that uses MLKit on iOS/Android platforms to enable body pose and mask detection using Pose Detection and Selfie Segmen

null 18 Dec 5, 2022
Flutter simple image crop - A simple and easy to use flutter plugin to crop image on iOS and Android

Image Zoom and Cropping plugin for Flutter A simple and easy used flutter plugin to crop image on iOS and Android. Installation Add simple_image_crop

null 97 Dec 14, 2021
Flutter blue plus - Flutter plugin for connecting and communicationg with Bluetooth Low Energy devices, on Android and iOS

Introduction FlutterBluePlus is a bluetooth plugin for Flutter, a new app SDK to

null 141 Dec 22, 2022
Flutter plugin for selecting images from the Android and iOS image library, taking new pictures with the camera, and edit them before using such as rotation, cropping, adding sticker/text/filters.

advance_image_picker Flutter plugin for selecting multiple images from the Android and iOS image library, taking new pictures with the camera, and edi

Weta Vietnam 91 Dec 19, 2022
A Flutter Plugin for Volume Control and Monitoring, support iOS and Android

flutter_volume A flutter plugin for volume control and monitoring, support iOS and Android 手把手带你写 Flutter 系统音量插件 https://www.yuque.com/befovy/share/fl

befovy 35 Dec 9, 2022
Flutter Downloader - A plugin for creating and managing download tasks. Supports iOS and Android.

Flutter Downloader A plugin for creating and managing download tasks. Supports iOS and Android. This plugin is based on WorkManager in Android and NSU

Flutter Community 789 Jan 3, 2023
A Video Player For Vimeo Videos in Flutter. This plugin allows us to play video from Vimeo and it supports Android and iOS platforms.

vimeo_video_player A Video Player For Vimeo Videos in Flutter. This plugin allow us to play video from vimeo and it's supports Android and iOS platfor

MindInventory 26 Dec 8, 2022
A Flutter sensor plugin which provide easy access to the Pitch and Roll on Android and iOS devices.

Flutter Aeyrium Sensor Plugin Aeyrium Sensor Plugin A Flutter sensor plugin which provide easy access to the Pitch and Roll on Android and iOS devices

Aeyrium 58 Nov 3, 2022
Resource monitor - A flutter plugin for Android and IOS to monitor CPU and RAM usage of device.

resource_monitor A flutter plugin for Android and IOS to monitor CPU and RAM usage of device. TODO Return overall system cpu/memory usage. Implement A

Skandar Munir 1 Nov 11, 2022
Flutter Local Notifications - Learn how to implement local notifications into both Android and iOS using flutter_local_notifications plugin.

Flutter Local Notifications Example Flutter Local Notifications - Learn how to implement local notifications into both Android and iOS using flutter_l

Sandip Pramanik 12 Nov 29, 2022