Skip to main content

How use flavors with SDK


Forum|alt.badge.img+1

Is it possible to use the RevenueCat SDK with different flavors of the same app?

6 replies

sundeep
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 138 replies
  • October 8, 2021

Hi @Código Base,

Can you explain what you mean by flavors? Are you referring to Flutter flavors? We’ve seen this in the past, such as a production and a development flavor, and usually these are set up as two different RevenueCat apps in the same account (each flavor would use its own API key). 


Forum|alt.badge.img+1
  • Author
  • New Member
  • 2 replies
  • October 8, 2021

Exactly, I was referring to what you are saying. I understand then that it would also have to have an app in the stores (Google Play and App Store) for each of the flavors, right?


Forum|alt.badge.img+7
  • Active Member
  • 11 replies
  • October 8, 2021

We have 2 flavors for our Flutter app (20-60 purchases a day), and are using a Single RevenueCat app for managing this. It’s “ok” because you can still view Sandbox purchases for a test user.

However, we’re considering creating a separate RevenueCat “app” for our staging environment just to keep it clean. I’m still not sure if it’s worth the effort though yet.

We have a TestFlight for our staging app separate too our published Live app, which means you manage products on each. I think for our Android environment we just have one app but have a bunch of test products and live products. 

Will be interesting to hear what you go with.


Forum|alt.badge.img+1
  • Author
  • New Member
  • 2 replies
  • October 8, 2021

How do you use 2 flavors with the same app? In our case, each flavor has a different package id. DEV - es.codigobase.app.dev, STG - es.codigobase.app.stg, PRO - es.codigobase.app. 


Forum|alt.badge.img+6
  • Member
  • 8 replies
  • October 11, 2021

Very interested in this too. As Codigo Base was saying, our flavours have different package IDs so not sure how this works. 


ryan
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 391 replies
  • October 11, 2021

You’ll at least need a unique RevenueCat app for each bundle ID / package ID since those are treated as separate apps by Apple / Google as far as in-app purchases are concerned. Some developers choose to create multiple RevenueCat apps for different environments of the same bundle ID as well.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings