You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently in our ios and android app we are calling the FlutterWebAuth2.authenticate method. For the majority of users on both ios and android this works with no problem. However, for a number of Samsung models we encounter the following:
IllegalStateException: Reply already submitted
Our logging package informs us that this error is being thrown when the following is called:
flutter_web_auth_2.dart in FlutterWebAuth2._cleanUpDanglingCalls at line 93 within flutter_web_auth_2
We believe this is originating from the native code backing the flutter_web_auth_2 package rather than being a problem with how we have called authenticate.
Minimal Reproduction
Steps to reproduce the behaviour:
We have been unable to reproduce this problem ourselves as it appears to occur in specific models of phone, that we do not currently use for testing.
Our call to authenticate is as follows:
String result =awaitFlutterWebAuth2.authenticate(
url: authorizeUrl.toString(),
callbackUrlScheme:Platform.isIOS ?"churchsuite":"https",
).onError((error, stackTrace) {
// throw anything that needs throwing!logError(error.toString(), stackTrace: stackTrace);
if (error isException) throw error;
return'';
});
I realise this is less than ideal, so please ask any clarifying questions if that would be helpful.
Exception or Error
PlatformException(error, Reply already submitted, null, java.lang.IllegalStateException: Reply already submitted
at t6.c$g.a(DartMessenger.java:4)
at f7.k$a$a.error(MethodChannel.java:1)
at com.linusu.flutter_web_auth_2.a.onMethodCall(FlutterWebAuth2Plugin.kt:18)
at f7.k$a.a(MethodChannel.java:2)
at t6.c.l(DartMessenger.java:2)
at t6.c.m(DartMessenger.java:4)
at t6.c.i(Unknown Source:0)
at t6.b.run(Unknown Source:12)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
)
Expected Behaviour
After clicking login on this app we expect the user to proceed to our oAuth login screen and then return to our app having successfully completed our login flow.
Screenshots
Additional context
No response
Device
Samsung A21s
OS
Android 12
Browser
stock
Flutter version
3.27.0
flutter_web_auth_2 version
4.0.1
Checklist
I have read and followed the entiretroubleshooting guide and it has not provided the solution I need.
I have provided all the information I can.
The text was updated successfully, but these errors were encountered:
Description
Currently in our ios and android app we are calling the
FlutterWebAuth2.authenticate
method. For the majority of users on both ios and android this works with no problem. However, for a number of Samsung models we encounter the following:Our logging package informs us that this error is being thrown when the following is called:
We believe this is originating from the native code backing the flutter_web_auth_2 package rather than being a problem with how we have called authenticate.
Minimal Reproduction
Steps to reproduce the behaviour:
We have been unable to reproduce this problem ourselves as it appears to occur in specific models of phone, that we do not currently use for testing.
Our call to authenticate is as follows:
I realise this is less than ideal, so please ask any clarifying questions if that would be helpful.
Exception or Error
Expected Behaviour
After clicking login on this app we expect the user to proceed to our oAuth login screen and then return to our app having successfully completed our login flow.
Screenshots
Additional context
No response
Device
Samsung A21s
OS
Android 12
Browser
stock
Flutter version
3.27.0
flutter_web_auth_2 version
4.0.1
Checklist
The text was updated successfully, but these errors were encountered: