Skip to main content

I have setup revenue cat in my KMP app with the paywall UI and running into an issue on the android app where only the default template for the paywall is being displayed due to the following error: 

 

“Displaying default template because paywall is missing for offering {my_offering_id}“

 

I tried even just making a basic template from scratch on the website wondering if maybe one of the templates I picked wasn’t supported on KMP. I have looked at the offering and it looks like there is a paywall configured for the offering so not quite sure what I'm doing wrong or if the sdk on compose multiplatform doesn't really support this? Any help would be appreciated. 

 

purchases-kmp = "1.4.0+13.16.2"
purchases-common = "13.16.2"


purchases-core = { module = "com.revenuecat.purchases:purchases-kmp-core", version.ref = "purchases-kmp" }
purchases-datetime = { module = "com.revenuecat.purchases:purchases-kmp-datetime", version.ref = "purchases-kmp" }
purchases-result = { module = "com.revenuecat.purchases:purchases-kmp-result", version.ref = "purchases-kmp" }
purchases-ui = { module = "com.revenuecat.purchases:purchases-kmp-ui", version.ref = "purchases-kmp"}

In my CMP code to display the paywall just doing the following. 

@Composable
fun SubscriptionContent(bloc: SubscriptionBloc) {
val options = remember {
PaywallOptions(dismissRequest = bloc::onBackClicked) {
shouldDisplayDismissButton = true
}
}
Scaffold {
Box(
modifier = Modifier
.fillMaxSize()
.padding(it)
) {
Paywall(options)
}
}
}

 

Of course right after I post this I found the issue was just because it was using the updated paywall template editor. Got this to work by simply using the Original Paywalls (v1) to make the paywall which is on the top right when creating a new paywall. 


Reply