requestPurchase() is not opening up iOS payment dialog
KamathVishak96 opened this issue · 7 comments
Version of flutter_inapp_purchase
I'm using flutter_inapp_purchase: ^5.3.1
Platforms you faced the error (IOS or Android or both?)
Facing this issue only on iOS
Expected behaviour
When I call FlutterInappPurchase.instance.requestPurchase(productId);
, iOS device should Log Purchase Started ! !
and bring up the App store's Purchase Dialog.
Actual behaviour
Sometimes it does bring up the Dialog, But many times, It logs Restored
and does nothing. This log is coming from the iOS part of the Plugin i.e., FlutterInAppPurchase.m
.
Tested environment (Emulator? Real Device?)
I tested this on Real devices, iPhone 13 and iPhone 12
Steps to reproduce the behaviour
When the app opens, I call isReady()
, getSubscriptions(skus)
, and getAvailablePurchases()
in this order and with an await. By the time user goes to the Subscription page, all these will be loaded. And when User clicks on the Product, I'm calling requestPurchase(productId)
. It is after I call requestPurchase()
, I either see Purchase Started ! !
log which is how it should be. But many times I just see Restored
. I have confirmed that There's no active Subscription. This happens with both the Sandbox account and in Testflight.
same issue, any idea?
Same issue
Same problem, no solution found?
any solutions ???
any solutions?
This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.
Having same issue