Troubleshooting
Troubleshooting
Recommendations
- Before continuing any coding, ensure that you have successfully completed all forms related to agreements, bank accounts, or tax information (any bureaucratic processes associated with the app store you are using).
Common issues
Most of the issues encountered by users are caused by:
- A device simulator. Use a real device for testing!
- An incorrect usage of the library. Read the documentation.
getProducts
returns an empty array
- Please double check if you've called
initConnection
. - Please wait for max. 24 hours to fetch your IAP products if you've just uploaded them. Related to issue.
- For
iOS
, from iOS version>=13
, we seem to useStoreKit
to fix this issue as mentioned in stackoverflow. - For
android
, please double check issue comment here and see if you've missed something.
getAvailablePurchases()
returns an empty array
getAvailablePurchases()
is used only when you purchase a non-consumable product. This can be restored only.- If you want to find out if a user subscribes the product, you should check the receipt which you should store in your own database.
- Apple suggests you handle this in your own backend to do things like what you are trying to achieve.
Invalid productId
in iOS.
Please try below and make sure you've done all the steps:
Completed an effective "Agreements, Tax, and Banking."
Setup sandbox testing account in "Users and Roles."
Signed into iOS device with sandbox account in "Settings / iTunes & App Stores".
Set up three In-App Purchases with the following status:
- Ready to Submit
- Missing Metadata
- Waiting for Review
Enable "In-App Purchase" in Xcode "Capabilities" and in Apple Developer -> "App ID" setting.
Clean up builds:
- Delete the app on device
- Restart device
- Quit “store” related processes in Activity Monitor
- Development Provisioning Profile -> Clean -> Build.