Replies: 1 comment
-
Common Causes1. Product Type Mismatch
It does NOT return:
2. Sandbox vs Production
3. Apple ID Not Signed InThe user must be signed into the same Apple ID that made the original purchase. 4. StoreKit 2 BehaviorIn v14+ (StoreKit 2), ensure you're calling the method correctly: import { getAvailablePurchases } from 'react-native-iap';
const restorePurchases = async () => {
try {
const purchases = await getAvailablePurchases();
console.log('Restored purchases:', purchases);
// Process restored purchases
for (const purchase of purchases) {
// Grant entitlement based on purchase.productId
}
} catch (error) {
console.error('Restore failed:', error);
}
};App Review Rejection Tips
Important Notes
References |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’m encountering an issue where, after switching devices and attempting to restore purchases, the getAvailablePurchases() method returns an empty array, despite using the same Apple ID and app ID. This problem persists even when the user reinstalls the app on a new device. Consequently, my app was rejected during the review process. Could you provide guidance on how to properly restore purchases under these circumstances?
Beta Was this translation helpful? Give feedback.
All reactions