Question

[React-Native] Does RevenueCat handles AppStore Promotion

  • 18 May 2023
  • 2 replies
  • 174 views

Badge +1

See the link https://developer.apple.com/app-store/promoting-in-app-purchases/

Also in app store:

App Store Promotion (Optional)

To promote this subscription on the App Store, add a 1024 x 1024 pixel promotional image below. It'll appear on your app's product page and when a customer redeems an offer code. Promotional images may also appear in search results or be featured by the editorial team. You can promote up to 20 in-app purchases at a time. Make sure your app supports either PurchaseIntent or paymentQueue(_:shouldAddStorePayment:for:)Learn More


Found that it is possible with native code.

But on react-native sdk i don’t know is it possible if not want to feature request. Thanks.

from a different library solution does revenuecat have this ?
https://github.com/iaphub/react-native-iaphub#onbuyrequest---event-triggered-when-a-purchase-intent-is-made-from-outside-the-app-like-a-promoted-in-app-purchase


edit:
i found that flutter sdk andreact-native handles this problem via addShouldPurchasePromoProductListener
but it is not in docs. if anyone need i leave it here the implementation.
https://github.com/RevenueCat/purchases-flutter/issues/341#issuecomment-1170976349
https://github.com/RevenueCat/react-native-purchases/issues/300


2 replies

Userlevel 4
Badge +8

Hi, RevenueCat does support App Store Promotions.Those Github issue threads are good places to check for this. Also note that RevenueCat does support the SKPaymentTransactionObserver method, and that RevenueCat automatically registers an SKPaymentTransactionObserver when you configure an instance of Purchases. You'll need to implement the delegate method shouldPurchasePromoProduct: https://docs.revenuecat.com/docs/configuring-sdk#ios

Badge +2

@Haley Pace do you have an example by any chance of how to implement “addShouldPurchasePromoProductListener”

Reply