
Fonctionnalités
Documentation
In-App Purchase
The app supports two IAP product types:
- coins — a consumable pack that credits a fixed number of coins.
- remove_ads — a non-consumable that permanently disables interstitial ads for the buyer.
Product IDs are the same on Google Play and the App Store. Set them once in setup.html, register them in both stores with the same ID, and you're done.
1. Define your products in setup.html
Open setup.html → Configurations → In-App Purchase. For each product, enter:
| Field | Notes |
|---|---|
| id | The store product ID. Reverse-DNS style, e.g. com.yourcompany.logoquiz.coins_500. |
| title | In-app display label. |
| type | coins or remove_ads. |
| coins | Integer, only for coins products. |
Add as many coins products as you want (typical: 3–5 packs). Add at most one remove_ads product.
Set IAP_IS_ENABLED=true.
2. Create the products on Google Play
In the Play Console for your app:
- Open Monetize → In-app products (consumables) for each
coinsproduct. - Open Subscriptions and one-time products for the
remove_adsnon-consumable. - Use the exact same product IDs you entered in
setup.html.
Play requires that you upload at least one signed AAB before it will let you activate IAP products — see Release → Build.
3. Create the products on App Store Connect
For each product:
- Open App Store Connect → your app → In-App Purchases.
- Create a Consumable for each
coinsproduct. - Create a Non-Consumable for the
remove_adsproduct. - Match the same product IDs.
Testing IAP
- Play — add your Google account as a License tester in the Play Console → Setup → License testing. Testers see a "Test payment" flow, no real charge.
- App Store — create a Sandbox tester account in App Store Connect → Users and Access → Sandbox → Testers. Sign into that account on your device under Settings → App Store → Sandbox Account.
Précédent
AppLovin
Suivant
Play Games & Game Center