forked from LinusU/flutter_web_auth
-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
I am integrating a third party platform to verify KYC using flutter_web_auth_2: ^4.1.0
It is working in iOS but in android it is trying open app and instantly coming back to custom tab.
before launching deeplink my app is showing in app switcher and after lauching deeplink it is not showing, But app is not crashing it is in running state i can see logs.
Attaching a video, please check
video.file.1.mp4
Link:
https://app.digio.in/#/gateway/login/asdasdf?redirect_url=app-digio-callback://digio/callback
Manifest:
<activity
android:name="com.linusu.flutter_web_auth_2.CallbackActivity"
android:exported="true"
android:launchMode="singleTop" //tried with and without this line
android:noHistory="true" //tried with and without this line
>
<intent-filter android:label="flutter_web_auth_2">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="app-digio-callback"
android:host="digio"
/>
</intent-filter>
</activity>
Flutter code
final result = await FlutterWebAuth2.authenticate(
url: url,
callbackUrlScheme: "app-digio-callback",
options: const FlutterWebAuth2Options(
preferEphemeral: false, //tried with and without this line
silentAuth: false, //tried with and without this line
useWebview: false, //tried with and without this line
),
);
Exception or Error
6
W/AidlConversionCppNdk(12851): aidl2legacy_AudioChannelLayout_audio_channel_mask_t: no legacy output audio_channel_mask_t found for AudioChannelLayout{layoutMask: 16}
D/callGcSupression(12851): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference
D/ResourcesManagerExtImpl(12851): applyConfigurationToAppResourcesLocked app.getDisplayId() return callback.displayId:-1
3
I/oplus.android.OplusFrameworkFactoryImpl(12851): get feature:IOplusDynamicVsyncFeature
D/ScrollOptim [SceneManager](12851): updateCurrentActivity: mCurrentActivityName=com.linusu.flutter_web_auth_2.CallbackActivity, isOptEnable=true, isAnimAheadEnable=true, isFrameInsertEnable=true, InsertNum=1, isEnabledForScrollChanged=false
D/ActivityThread(12851): ComponentInfo{com.propsharecapital.idma.dev/com.linusu.flutter_web_auth_2.CallbackActivity} checkFinished=true 1
I/flutter (12851): ====> Callback: app-digio-callback://digio/callback?status=success&digio_doc_id=kid251127123835677t48a4co12tnkar&message=KYC%20process%20completed
3
D/callGcSupression(12851): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference
D/ScrollOptim [SceneManager](12851): updateCurrentActivity: mCurrentActivityName=com.linusu.flutter_web_auth_2.CallbackActivity, isOptEnable=true, isAnimAheadEnable=true, isFrameInsertEnable=true, InsertNum=1, isEnabledForScrollChanged=false
D/ActivityThread(12851): ComponentInfo{com.propsharecapital.idma.dev/com.linusu.flutter_web_auth_2.CallbackActivity} checkFinished=true 1
D/ScrollOptim [SceneManager](12851): updateCurrentActivity: mCurrentActivityName=null, isOptEnable=true, isAnimAheadEnable=true, isFrameInsertEnable=true, InsertNum=1, isEnabledForScrollChanged=false
D/callGcSupression(12851): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference
D/ScrollOptim [SceneManager](12851): updateCurrentActivity: mCurrentActivityName=com.linusu.flutter_web_auth_2.CallbackActivity, isOptEnable=true, isAnimAheadEnable=true, isFrameInsertEnable=true, InsertNum=1, isEnabledForScrollChanged=false
D/ActivityThread(12851): ComponentInfo{com.propsharecapital.idma.dev/com.linusu.flutter_web_auth_2.CallbackActivity} checkFinished=true 1
D/ScrollOptim [SceneManager](12851): updateCurrentActivity: mCurrentActivityName=null, isOptEnable=true, isAnimAheadEnable=true, isFrameInsertEnable=true, InsertNum=1, isEnabledForScrollChanged=false
Expected Behaviour
It should open the app, should not come back to chrome custom tab.
Screenshots
No response
Additional context
No response
Device
RealMe 14
OS
14
Browser
Chrome
Flutter version
3.32.8
flutter_web_auth_2 version
4.1.0
Checklist
- I have read and followed the entire troubleshooting guide and it has not provided the solution I need.
- I have provided all the information I can.
vfiruz97
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working