SDK Lifecycle
The SDK should be initialized once during application startup.
magify.initSdk(
complete = {
// track sdk initialization
}
)
magify.initialSetup()
After initialization, call update() every time the application enters the foreground to synchronize the SDK state.
magify.update()
Recommended integration flow
createInstance()
↓
optional flags
↓
initSdk()
↓
initialSetup()
↓
update() on app foreground
This sequence represents the recommended SDK initialization flow.
Next step
Now that the SDK lifecycle is configured, you can proceed to the Purchases section to synchronize subscription and in-app purchase status.