Skip to main content
Version: 4.1.x.x RR (Android, iOS) / 4.2.x.x RR (Flutter, React Native)

Initialization

All the functionalities of the Nevis Mobile Authentication SDK are accessible through the MobileAuthenticationClient java, swift, objc, flutter, react native interface of the SDK.

Creating a MobileAuthenticationClient can be time-consuming when your application runs in slow devices. We recommend creating a single instance of MobileAuthenticationClient and reusing it to execute multiple operations.

caution

On iOS platform do not block the main thread during SDK initialization, as this can lead to UI unresponsiveness or deadlocks. The initialization process may need to dispatch work to the main thread in certain scenarios. Avoid using blocking techniques such as DispatchSemaphore or DispatchGroup's wait() method on the main thread.

To create a MobileAuthenticationClient, use the MobileAuthenticationClientInitializer java, swift, objc, flutter, react native as described in the following code example:

Initialization