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
The SumSub Android library does not send any callback to the client when the SumSub Activity, opened over the App Activity, is closed by the system.
#24
Open
expcapitaldev opened this issue
Apr 18, 2024
· 0 comments
The SumSub Android library does not send any callback to the client when the SumSub Activity, opened over the App Activity, is closed by the system.
Issue related to Cordova plugin
Checked on
1.31.0 and 1.27.0
Example
App Activity Manifest
<activity
android:exported="true"
android:label="@string/activity_name"
android:launchMode="singleTask"
android:name="MainActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.App.SplashScreen">
<intent-filter android:label="@string/launcher_name">
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
Cordova library launch
SNSMobileSDK.Builder snsSdkBuilder = new SNSMobileSDK.Builder(cordova.getActivity());
SNSMobileSDK.SDK snsSdk = snsSdkBuilder
.withAccessToken(accessToken)
.withModules(modules)
.withErrorHandler(errorHandler)
.withStateChangedHandler(stateChangedHandler)
.withCompleteHandler(completeHandler)
.withActionResultHandler(actionResultHandler)
.withEventHandler(eventHandler)
.withSettings(settings)
.withConf(config)
.build();
snsSdk.launch();
After that user go to home screen and click App Launcher icon.
Because of Main Activity android:launchMode="singleTask" SumSubActivity over Main destroys by system and Main Activity brings to front.
No one from callbacks (Handlers) receive any events
.withErrorHandler(errorHandler)
.withStateChangedHandler(stateChangedHandler)
.withCompleteHandler(completeHandler)
.withActionResultHandler(actionResultHandler)
.withEventHandler(eventHandler)
The text was updated successfully, but these errors were encountered:
The SumSub Android library does not send any callback to the client when the SumSub Activity, opened over the App Activity, is closed by the system.
Issue related to Cordova plugin
Checked on
1.31.0 and 1.27.0
Example
The text was updated successfully, but these errors were encountered: