Migration to 4.x
Step 1: Update Dependencies
// build.gradle (Module: app)
dependencies {
// Before (3.x)
// implementation 'com.netmera:nmcore:3.x.x'
// implementation 'com.netmera:nmfcm:3.x.x'
// implementation 'com.netmera:nmhms:3.x.x'
// After (4.x)
implementation 'com.netmera:nmcore:4.x.x'
implementation 'com.netmera:nmfcm:4.x.x' // If using FCM (Firebase)
implementation 'com.netmera:nmhms:4.x.x' // If using HMS (Huawei)
}Step 2: Register NMActivityLifecycleCallbacks
Step 3: Register Providers via NetmeraConfiguration.Builder
Step 4: Remove Manual Startup Infrastructure
Before / After Code Summary
❌ 3.x Implementation (Legacy)
4.x Implementation (Modernized)
Last updated
Was this helpful?