Solved

React-Native - Migrating from Native App to React Native - Usage understanding problem of restorePurchases() and syncPurchases()

  • 23 November 2022
  • 2 replies
  • 100 views

Badge +1

Hello, 

the topic is:

I build a React Native Follow Up of a native App which is already in stores (Google, Apple).

I have no access to the source code of the old App.

I want to enable the users possibility (after App update) to use their subscription which he/she/x have bought via the old native system.

I wonder if its necessary to call syncPurchases() on first App start ? 

Or will restorePurchases() (This will be triggered on users CTA click) do all what i need?

Looking forward to your answers.

Thanks

Robert

icon

Best answer by cody 29 November 2022, 19:53

View original

2 replies

Userlevel 6
Badge +8

Hey @codebdev!

Calling syncPurchases on app startup will take any existing transactions and sync it to RevenueCat in the background, so that seems like the way to go here, although you probably won’t want to call it every time, only if the users are newly created. It will ensure the users that launch the app for the first time have their purchases recognized in RevenueCat.

I’d also recommend having a restore purchases CTA somewhere in your paywall or settings, so in the event that a user’s purchases didn’t get synced automatically they can manually trigger it to force it to restore.

Badge

This is my first application in Flutterflow and I would like to share my idea to know whether Revenuecat supports these purchases... First, I have a a lot of stores in the application that will pay their subscription amounts to us.. Secondly, it is possible for stores to display their products on our application (I use Firebase for that) and when purchasing The customer will pay directly to the store from which it was purchased. Is it possible for revenuecat to do this and what is the mechanism followed for that.

Finally, when will the amounts be received in our account with you (I am from the Kingdom of Saudi Arabia).

Thank you all

Reply