Hello Team, Kindly share your thoughts on below. ...
# multiplatform
g
Hello Team, Kindly share your thoughts on below. We are planning to migrate our mobile app to Kotlin Multiplatform (KMP). Right now, all features are already built natively in Android (Kotlin) and iOS (Swift). These are the main features in the app: • Splash screen • Push notifications (Firebase) • Live location tracking • Socket integration for live location • Custom chat integration (using QuickBlox) • Audio/video calls and group chat (QuickBlox) • Custom map screens (clusters, custom markers, etc.) The idea is to use KMP to share as much business logic as possible, but keep the platform-specific parts like UI, SDK integrations (e.g. QuickBlox, Maps) native. Basically: • UI stays native (Compose/SwiftUI) • Push notifications, audio/video SDKs stay native • Maps UI stays native • Shared logic for things like sockets, data models, chat message handling, location data transformations goes into KMP I want to reduce duplicate code and maintenance costs between Android and iOS. Do you think KMP is a good fit for this project? Or would you suggest sticking with purely native code or using another cross-platform tech? Appreciate your thoughts!
a
That is a perfectly reasonable plan and we did that for years before switching to compose for both on many apps.
c
This is one of the main objectives of KMP, so you're right in the supported goals.
2