Skip to content
This repository has been archived by the owner on Dec 2, 2018. It is now read-only.

First access error #36

Open
rafaelterada opened this issue Oct 10, 2018 · 1 comment
Open

First access error #36

rafaelterada opened this issue Oct 10, 2018 · 1 comment

Comments

@rafaelterada
Copy link

rafaelterada commented Oct 10, 2018

Good afternoon. I am using this plugin to send sms. On first access, after the permission requests, when it passes the "new SmsSender ()", it gives an error and closes the system. Follow the error below. Thanks

E/AndroidRuntime(26607): java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=5, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {br.com.emdurb.areaazulorientador/br.com.emdurb.areaazulorientador.MainActivity}: java.lang.IllegalStateException: Reply already submitted E/AndroidRuntime(26607): at android.app.ActivityThread.deliverResults(Unknown Source:118) E/AndroidRuntime(26607): at android.app.ActivityThread.handleSendResult(Unknown Source:176) E/AndroidRuntime(26607): at android.app.ActivityThread.-wrap19(Unknown Source:0) E/AndroidRuntime(26607): at android.app.ActivityThread$H.handleMessage(Unknown Source:426) E/AndroidRuntime(26607): at android.os.Handler.dispatchMessage(Unknown Source:21) E/AndroidRuntime(26607): at android.os.Looper.loop(Unknown Source:139) E/AndroidRuntime(26607): at android.app.ActivityThread.main(Unknown Source:65) E/AndroidRuntime(26607): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(26607): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(Unknown Source:11) E/AndroidRuntime(26607): at com.android.internal.os.ZygoteInit.main(Unknown Source:335) E/AndroidRuntime(26607): Caused by: java.lang.IllegalStateException: Reply already submitted E/AndroidRuntime(26607): at io.flutter.view.FlutterNativeView$1.reply(FlutterNativeView.java:174) E/AndroidRuntime(26607): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:194) E/AndroidRuntime(26607): at com.ethras.simplepermissions.SimplePermissionsPlugin.onRequestPermissionsResult(SimplePermissionsPlugin.java:172) E/AndroidRuntime(26607): at io.flutter.app.FlutterPluginRegistry.onRequestPermissionsResult(FlutterPluginRegistry.java:191) E/AndroidRuntime(26607): at io.flutter.app.FlutterActivityDelegate.onRequestPermissionsResult(FlutterActivityDelegate.java:125) E/AndroidRuntime(26607): at io.flutter.app.FlutterActivity.onRequestPermissionsResult(FlutterActivity.java:133) E/AndroidRuntime(26607): at android.app.Activity.dispatchRequestPermissionsResult(Unknown Source:21) E/AndroidRuntime(26607): at android.app.Activity.dispatchActivityResult(Unknown Source:37) E/AndroidRuntime(26607): at android.app.ActivityThread.deliverResults(Unknown Source:43) E/AndroidRuntime(26607): ... 9 more

@babariviere
Copy link
Owner

babariviere commented Oct 11, 2018

Hello, I am sorry, I don't have enough time to fix this. If you want to post a fix, I can help you create it, otherwise you can ask other contributors to make it
Sorry

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

No branches or pull requests

2 participants