SDK Integration

React Native Installation

Supported Platforms

The library is available for the following React Native (0.73+) platforms:

  • Android 5.0 (API 21) and newer
  • iOS 13.4 and newer

How To Install

1. Install the package via npm

npm i react-native-mtoken-sdk --save

2. Install pods for iOS (if needed)

To make integration work with iOS, you might need to install Pods (needed for PowerAuth):

cd ios
pod install

3. Import in your js/ts files

import { PowerAuth } from 'react-native-powerauth-mobile-sdk';

function createMtokenInstance() {
    const powerAuth = new PowerAuth("my-instance")
    // note that an activated PowerAuth instance is required. How to activate the PowerAuth instance, follow https://github.com/wultra/react-native-powerauth-mobile-sdk documentation.
    
    // Then, use PowerAuth's helper function to create the mtoken instance:
    const mtoken = powerAuth.createWultraMobileToken()
}

Cordova Installation

Supported Platforms

The library is available for the following Apache Cordova (>=12.0.0) platforms:

  • Android 7.0 (API 24) and newer (cordova-android version >=12.0.0)
  • iOS 11.0 and newer (cordova-ios version >=7.0.0)

How To Install

1. Install the plugin via the Cordova plugin installer

cordova plugin add cordova-mtoken-sdk

2. Install pods for iOS (if needed)

To make integration work with iOS, you might need to install Pods (needed for PowerAuth):

cd platforms/ios
pod install

3. Start using Wultra Mobile Token classes

const powerAuth = new PowerAuth("my-instance")
// note that an activated PowerAuth instance is required. How to activate the PowerAuth instance, follow https://github.com/wultra/react-native-powerauth-mobile-sdk documentation.

// Then, use PowerAuth's helper function to create the mtoken instance:
const mtoken = powerAuth.createWultraMobileToken()
Last updated on Feb 21, 2025 (09:57) Edit on Github Send Feedback
Search

1.0.x

Mobile Token SDK JS