activate

suspend fun Adapty.activate(context: Context, config: AdaptyConfig)

Activates the Adapty SDK using the provided context and config.

By default, the SDK automatically retrieves the application context using Android Startup Initializer. However, if the automatic mechanism is disabled or removed from the manifest, you can call this method manually from your Application.onCreate to ensure proper initialization.

Parameters

context

Android Application context to initialize the SDK.

config

Configuration for Adapty SDK.

See also