Skip to content

onActionResult event handler is not working and Rejected Templates are not triggering rejected statusΒ #24

@leonahliang90

Description

@leonahliang90

Version

@sumsub/react-native-mobilesdk-module: "^1.37.1"
react-native: "0.79.2"

some context - we are going develop a feature as below

When a user submits a document, it may be approved or sent back for resubmission. If the document is not approved, the user will need to resubmit it until it is finally rejected.

Solution
We need to listen to this event (https://docs.sumsub.com/docs/react-native-module#action-result-handler), then it will return two key fields, status & actionResult
if status is TemporarilyDeclined , then we will ask user for document resubmission
if status is FinallyRejected or Approved , then we will allow user to continue with the manual Form input or preview screen.

Issue

  1. We follow the example here: https://github.com/SumSubstance/react-native-mobilesdk-module/blob/main/demo/src/FlowRunScreen/FlowRunScreen.js#L70C11-L74C15, but we are not getting any data from this onActionResult, can you double check on your side on this please ?

  2. Based on the documentation, these Rejected Templates (https://docs.sumsub.com/docs/verification-document-templates#rejected-templates) are specically designed to trigger a rejected status (RETRY/ RESUBMIT or FINAL REJECTION or etc.), however, they are being returned as 'success', this is a critical functionality for testing fallback user journeys, can you double check on your side on this please ?

please let me know if you have doubts on the questions above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions