Skip to content

Commit

Permalink
Update troubleshooting.mdx (#2759)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Vittor-Javidan authored Jun 11, 2024
1 parent dec0774 commit 567ae41
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/docs/guides/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 567ae41

Please sign in to comment.