dooboolab-community / react-native-iap

In App Purchase module for React Native!
https://react-native-iap.dooboolab.com
MIT License
2.81k stars 641 forks source link

getAvailablePurchases() always giving error like this : [Error: An unknown error occurred] in ios, i don't know what is the issue? #2685

Open keval7169-ops opened 7 months ago

keval7169-ops commented 7 months ago

"react-native-iap" : ^12.12.2 "react-native": "0.71.11",

pioner92 commented 7 months ago

I am getting this error when I call getAvailablePurchases()

RNIapIos.getAvailableItems was called with 1 arguments but expects 0 arguments. If you haven't changed this method yourself, this usually means that your versions of the native code and JavaScript code are out of sync. Updating both should make this error go away.

-[RCTModuleMethod invokeWithBridge:module:arguments:]
    RCTModuleMethod.mm:549
facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext)
facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)::$_0::operator()() const
invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_lane_serial_drain
_dispatch_lane_invoke
_dispatch_root_queue_drain_deferred_wlh
_dispatch_workloop_worker_thread
_pthread_wqthread
start_wqthread
anatooly commented 6 months ago

[react-native-iap] restoreCompletedTransactionsFailedWithError