A Kotlin Multiplatform library that wraps the native in-app review APIs for Android and iOS under a unified, coroutine-friendly interface.
- Android: Google Play In-App Review API
- iOS: SKStoreReviewController
- Unified API: single
requestReview()call from shared code
// build.gradle.kts
commonMain.dependencies {
implementation("io.github.froyder:kmp-inapp-review:1.0.0")
}Create a platform-specific instance once, at app startup:
// Android
val reviewManager = ReviewManager(activity)
// iOS
val reviewManager = ReviewManager()Then call from shared commonMain code — identical for both platforms:
viewModelScope.launch {
try {
reviewManager.requestReview()
} catch (e: Exception) {
// handle error
}
}- Neither platform guarantees the dialog will be shown
- Android rate-limits via Google Play; iOS rate-limits to 3 times per year
- The library contract is "flow completed without error", not "dialog was shown"
| Platform | Minimum version |
|---|---|
| Android | API 21 |
| iOS | iOS 16 |
Apache 2.0