Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Adobe Experience Platform Mobile SDK with Jetpack Compose | AEM Community Blog Seeding

Avatar

Administrator

BlogImage.jpg

Adobe Experience Platform Mobile SDK with Jetpack Compose by Yansong Yang

Abstract

In this blog, we give you a step-by-step tutorial on how to integrate Adobe Experience Platform Mobile SDKs with a Jetpack Compose application.

Jetpack Compose, which is becoming more and more popular, is Android’s modern toolkit for building native UI. It simplifies and accelerates UI development on Android and it brings your app to life with less code, powerful tools, and intuitive Kotlin APIs.

Initializing AEP Mobile SDK
Registering the extensions and initializing the Adobe Experience Platform Mobile SDKs when launching the application are required before making SDK API calls. This sample code is provided as a reference. For more information, see the documentation on “add initialization code”.


class MyApp: Application() {
override fun onCreate() {
super.onCreate()
MobileCore.setApplication(this)
MobileCore.setLogLevel(LoggingMode.VERBOSE)
Lifecycle.registerExtension()
Analytics.registerExtension()
Identity.registerExtension()
MobileCore.configureWithAppID("your-app-id")
MobileCore.start {
MobileCore.lifecycleStart(object : HashMap<String?, String?>() {
init {
put("key", "value")
}
})
}
}
}

Read Full Blog

Adobe Experience Platform Mobile SDK with Jetpack Compose

Q&A

Please use this thread to ask the related questions.

0 Replies