purchases-android icon indicating copy to clipboard operation
purchases-android copied to clipboard

Support ".debug" applicationIdSuffix

Open mattrob33 opened this issue 1 year ago • 1 comments

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()

mattrob33 avatar Oct 13 '22 20:10 mattrob33

👀 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!

RCGitBot avatar Oct 13 '22 20:10 RCGitBot

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!

codykerns avatar Oct 21 '22 20:10 codykerns

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.

mattrob33 avatar Oct 24 '22 14:10 mattrob33