awaitSyncPurchasesResult

suspend fun <Error class: unknown class>.awaitSyncPurchasesResult(): Result<<Error class: unknown class>>

This method will send all the purchases to the RevenueCat backend. Call this when using your own implementation for subscriptions anytime a sync is needed, such as when migrating existing users to RevenueCat.

Warning: This function should only be called if you're migrating to RevenueCat or in observer mode.

Warning: This function could take a relatively long time to execute, depending on the amount of purchases the user has. Consider that when waiting for this operation to complete.

Return

A Result containing CustomerInfo if successful, and PurchasesException in case of a failure.