Skip to main content
Solved

In-app Promo

  • May 3, 2022 3:39 PM UTC
  • 2 replies
  • 440 views

tobysola1
Forum|alt.badge.img+10

Hi,

 

Is it possible for the RC in-app SDK to grant a user a promo (free access) using the public key? We do this with our website, but I want to deep link certain users to get free access. So I want to use the RC SDK to start RC promos. Is this possible?

 

Thanks, 

 

Toby

Best answer by Jacob Eiting

Hey Toby!

 

So I think you’re asking about our “promotional entitlements”, the thing you can grant manually in the UI. 

 

It’s only possible with a private key, since leaking the key would allow anyone to grant anyone else an entitlement (assuming your user IDs aren’t obsfucated in some way)

 

I’d suggest creating a server that has an endpoint that will do this with a private key, and let your app call it. Then you can decide the security you’re comfortable with on that endpoint for your app/use case.

View original
This post has been closed for comments

2 replies

Jacob Eiting
RevenueCat Staff
Forum|alt.badge.img+5
  • RevenueCat Staff
  • Answer
  • May 3, 2022 5:23 PM UTC

Hey Toby!

 

So I think you’re asking about our “promotional entitlements”, the thing you can grant manually in the UI. 

 

It’s only possible with a private key, since leaking the key would allow anyone to grant anyone else an entitlement (assuming your user IDs aren’t obsfucated in some way)

 

I’d suggest creating a server that has an endpoint that will do this with a private key, and let your app call it. Then you can decide the security you’re comfortable with on that endpoint for your app/use case.


tobysola1
Forum|alt.badge.img+10
  • Author
  • Dedicated Member
  • May 3, 2022 7:19 PM UTC

Hi Jacob,

 

Sweet I’ll do that. We already have the endpoint set up for our web app. So it should be easy to point the mobile app there. 

 

FYI - We’re decommissioning our web app/Stripe and pushing all users (even via email campaigns) to IAPs. As a small team, one less store is one less headache! And Apple’s 15% is probably worth the ability to use their payment system. We’ll report back on how this goes 🤞🏻

 

Pretty rad to get a reply from the CEO! Your presence has inspired me as a CEO to spend time hanging out with my power users : )

 

Have a nice week, 

 

Toby