Partner Integration Docs
  • Getting Started
  • Architecture Overview
  • Survey Wall Integration
  • UAT Test
  • Troubleshooting
  • Code Snippet
    • Golang
    • Nodejs
    • Flutter
    • Java / Kotlin
Powered by GitBook
On this page
  • Crypto Lib in React Native/Flutter
  • User Got Error Popup

Troubleshooting

PreviousUAT TestNextCode Snippet

Last updated 10 months ago

Crypto Lib in React Native/Flutter

React Native or Flutter, as of the latest updates, does not support crypto-js for a couple of reasons:

  1. Native Modules and Security Concerns: React Native is designed to facilitate cross-platform mobile development using JavaScript and native components. It aims to provide access to platform-specific APIs and functionality in a consistent manner. Native modules that directly access cryptographic functionalities, such as crypto-js, often introduce security risks if not implemented correctly or if they bypass platform-specific security measures.

  2. Differences in Platform APIs: Mobile platforms (iOS and Android) provide their own set of cryptographic APIs and libraries. These APIs are optimized for each platform's security standards and integration with hardware security modules (such as secure enclaves or Trusted Execution Environments). Using a JavaScript library like crypto-js would bypass these platform-specific optimizations and security measures.

Alternatives:

You can create additional backend API's for hashing and encryption process.

User Got Error Popup

If you or your user experienced this error

Please read again Survey Wall Integration especially on the and

Make sure you are using valid hash and encryption algorithm as defined in

Make sure you are using valid Partner ID and Partner Secret to encrypt the . You can contact our team to re-confirm about your Partner ID and Partner Secret

Signed Parameter Payload
Encryption Process
System Requirements
Signed Parameter Payload