From 567ae41e49723444040417b0e8d1d1c6b658b691 Mon Sep 17 00:00:00 2001 From: Vittor Javidan Date: Tue, 11 Jun 2024 13:29:15 -0300 Subject: [PATCH] Update troubleshooting.mdx (#2759) This is an update from commit #2681, now considering any platform. I decided to update my last contribution after helping a friend identify the root cause of the "getSubscriptions" method returning an empty array on iOS, while it returned products without issue. After about two weeks of exploring numerous possibilities, he finally resolved the problem: some forms on the Apple platform had not been approved yet. From this experience, I concluded why developers often find it challenging to implement in-app purchases. The main issue is the misleading feedback provided by the platform APIs, which makes it difficult to debug issues logically. Therefore, it is much better for developers to complete any bureaucratic processes before starting to code, allowing them to properly debug other issues. --- docs/docs/guides/troubleshooting.mdx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/docs/guides/troubleshooting.mdx b/docs/docs/guides/troubleshooting.mdx index 720d2b677..7c878934d 100644 --- a/docs/docs/guides/troubleshooting.mdx +++ b/docs/docs/guides/troubleshooting.mdx @@ -10,13 +10,16 @@ import AdFitTopFixed from "@site/src/uis/AdFitTopFixed"; # 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](https://react-native-iap.dooboolab.com). -- For `Android`, a hold in your payment profile on Google Play Console. Check for any warnings. ## `getProducts` returns an empty array