purchases-android
purchases-android copied to clipboard
Support ".debug" applicationIdSuffix
Looking through the SDK, it looks like the application package name must exactly match the name provided in the RevenueCat dashboard. This makes sense, but it breaks the common practice of using Android’s applicationIdSuffix
to install a debug version alongside of a release version, which is a really useful feature.
Is it currently possible to manually specify an application package name rather than deriving it from the application context? If not, it would be really nice to be able to do so, or at least to allow specifying an applicationIdSuffix
to the RevenueCat SDK. Something like this?
PurchasesConfiguration.Builder(context, API_KEY)
.applicationIdSuffix(“.debug”)
.build()
👀 SDKONCALL-147 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!
Hey @mattrob33! Thanks for the request - since the package name is required to match what's in Google Play when fetching and validating products/purchases, I'm not sure if this is possible right now. That being said, I'll share this with the team so it's on their radar!
Thanks @codykerns. Since applicationIdSuffix
is an officially supported feature of the Android Gradle Plugin, it would be really nice to have this supported, where RevenueCat could just strip off a trailing applicationIdSuffix
value from the package name. So com.company.app.debug
with an applicationIdSuffix
of debug
would result in com.company.app
being the package name to match with Google Play.
I posted this same question in the forum first btw but haven't had a response, if it's more helpful to track this issue there.