I’m trying to use the syncPurchases method in the Flutter SDK before checking entitlements to determine free trial eligibility on Android.
This workaround was suggested by Cody in the thread here:
However, despite the function returning a future, await Purchases.syncPurchases() doesn’t seem to actually await the purchases being synced. Looking at the Purchases package (see below), it doesn’t seem to await the method being invoked.
/// This method will send all the purchases to the RevenueCat backend.
///
/// **WARNING**: Call this when using your own implementation of in-app
/// purchases.
///
/// This method should be called anytime a sync is needed, like after a
/// successful purchase.
static Future<void> syncPurchases() => _channel.invokeMethod('syncPurchases');
Is this a bug, or is it not possible to await the purchases being synced?