Initialization
API Interface / React Native
Last updated
API Interface / React Native
Last updated
The MOVE SDK must be initialized natively. For the first init, the SDK expects to be setup after user onboarding using Javascript. In this case, Javascript passes the required and objects.
In all future inits, the SDK expects to be initialized natively at app start points (In Appdelegate for iOS, and MainApplication for Android). This is to guarantee that the MOVE SDK is set up and active before the limited time provided by the OS in background wakeups is consumed.
The native init will re-use the last authentication and configs objects passed to the SDK from the JS initialization.
To initialize the SDK natively, in your Appdelegate:
To initialize the SDK natively, in your MainApplication:
To setup the SDK in React Native you have to provide , and :