awaitSyncAttributesAndOfferingsIfNeededEither
suspend fun <Error class: unknown class>.awaitSyncAttributesAndOfferingsIfNeededEither(): Either<<Error class: unknown class>, <Error class: unknown class>>
Syncs subscriber attributes and then fetches the configured offerings for this user. This method is intended to be called when using Targeting Rules with Custom Attributes. Any subscriber attributes should be set before calling this method to ensure the returned offerings are applied with the latest subscriber attributes.
This method is rate limited to 5 calls per minute. It will log a warning and return offerings cache when reached.
Refer to the guide for more targeting information. For more offerings information, see Purchases.getOfferings.
Coroutine friendly version of Purchases.syncAttributesAndOfferingsIfNeeded.
Return
An Either.Right containing Offerings if successful, an Either.Left containing a PurchasesError in case of a failure.