Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working all method in release mode #103

Open
kamyar75 opened this issue Mar 31, 2021 · 6 comments
Open

not working all method in release mode #103

kamyar75 opened this issue Mar 31, 2021 · 6 comments

Comments

@kamyar75
Copy link

not working all method in release mode

04-01 00:43:39.333 14898-14939/? E/flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: MissingPluginException(No implementation found for method listenForCode on channel sms_autofill)
#0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156)

#1 SmsAutoFill.listenForCode (package:sms_autofill/sms_autofill.dart:34)

@kamyar75
Copy link
Author

kamyar75 commented Apr 2, 2021

how to solve this problem ???

@kevin997
Copy link

kevin997 commented Apr 3, 2021

buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so flutter run --release works.
signingConfig signingConfigs.debug

        minifyEnabled false
        shrinkResources false
    }
}

Try this in release mode

@jaumard
Copy link
Owner

jaumard commented Apr 18, 2021

Never got any issues in release mode... No sure what append, did you try to do a fresh clean of your project ?

@rajeshpatil95
Copy link

rajeshpatil95 commented Apr 27, 2021

yes same here, Functionality not working in release mode but works in debug mode
"flutter build apk --release --flavor dev -t lib/main/main_dev.dart" try generating release build and test it...auto fill doesn't work

sms_autofill: ^2.0.0

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.4, on Linux, locale en_IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.54.3)
[✓] Connected device (2 available)

• No issues found!

@prabuddaFernando
Copy link

I have same problem. await SmsAutoFill().hint does not work at all

@omkarpatil1024
Copy link

the reason for it is app signature id is different for debug and release application. to find the app signature id for release app please run following command .Please find the solution for generating app signature Id flutter run --release --dart-define=SMS_AUTOFILL_APP_SIGNATURE=<path/to/app-release.apk> for release application

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants