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

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

Comments

@expcapitaldev
Copy link

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)
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

1 participant