● Ship · When something is wrong
Troubleshooting
symptom, cause, fix.
The problems you are most likely to meet, in the order you meet them. Press / and search for the exact message.
01The app does not start properly
| Symptom | Cause | Fix |
|---|---|---|
| The app shows a setup screen instead of sign-in | app/lib/firebase_options.dart is still the placeholder with empty values. | Run flutterfire configure in app/ (how), or use DEMO_MODE=true / USE_EMULATOR=true. |
Every action fails with permission-denied or unauthenticated in a debug build | App Check: the debug token of this device is not registered. | Copy the debug token from the device log into Firebase console → App Check → Manage debug tokens. Or set ENFORCE_APP_CHECK=false in firebase/functions/.env while you set up, and redeploy. |
Actions fail with not-found or internal | The app calls Functions in a different region than you deployed to. | Build with --dart-define=FUNCTIONS_REGION=<your region>, matching firebase/functions/.env. |
| Google sign-in fails on Android | The SHA-1/SHA-256 fingerprints of your signing key are missing in Firebase. | Add them in Project settings, run flutterfire configure again. |
| Sign in with Apple fails | The capability or the Firebase Apple provider is not set up. | Add the capability in Xcode; enable Apple in Firebase Authentication. |
flutter pub get says the current Flutter SDK version does not satisfy the requirement | 4.0.0 needs Flutter 3.41 or newer (flutter: ">=3.41.0" in pubspec.yaml). | flutter upgrade, then flutter --version. |
pod install fails with a deployment target error | The plugins need iOS 15. | Keep platform :ios, '15.0' in the Podfile and set Minimum Deployments 15.0 in Xcode. |
| iOS build fails with "Include of non-modular header inside framework module 'google_mobile_ads…'" | google_mobile_ads was upgraded to 9.1.x, whose iOS headers import a private Google Mobile Ads SDK header. | Keep google_mobile_ads: 9.0.0 in app/pubspec.yaml, then run flutter pub get and cd ios && pod update google_mobile_ads Google-Mobile-Ads-SDK. |
pod install fails with "target has transitive dependencies that include statically linked binaries" (IronSource) | The LevelPlay plugin must be a static library because IronSource ships a static framework. | Keep the pre_install block of app/ios/Podfile that builds unity_levelplay_mediation as a static library. |
| The app does not install on an iOS 26 Simulator ("needs to be updated", no matching architecture) | The simulator build came out x86_64-only because Flutter read IronSource Ad Quality's arm64e exclusion as arm64. | Keep the post_install block of app/ios/Podfile that removes arm64e, run cd ios && pod install, then build again. |
02Ads and points
| Symptom | Cause | Fix |
|---|---|---|
| Users watch videos but get no points | The network's callback does not reach your function, or its signature fails. | Check the callback URL in the network's dashboard (URLs), the secret in the console, and Firebase console → Functions → logs. A wrong secret gives 403. |
| Points arrive only after a delay | Networks send callbacks from their servers, usually within seconds, sometimes later. | Normal. The balance updates by itself when the callback is applied (the app listens to the user document live). |
| Only Google test ads appear | AdMob is selected and no unit ids are entered, so the app uses Google's test units. | Enter your unit ids in console → AdMob units. |
| No ads at all with AppLovin, Unity or ironSource | That network's required ids are empty; the app shows nothing until they are set. | Fill them in; the console Status page lists what is missing. New ad units can take time before the network serves fill. |
| "You reached today's video limit. Come back tomorrow!" | adDailyCap reached for this UTC day (reason ad_cap), or the rewarded-interstitial daily cap (rewarded_interstitial_cap). | Expected. Change it in Rewards economy or Ad placements if you want. A cap of 0 means none (0 means none). |
| "Please wait a few seconds before the next video." | adCooldownSeconds (reason cooldown). | Expected. |
| Many fraud flags | Callbacks that do not match a pending session of the same user, or arrive after the session expired. | Review them in console → Fraud flags. A wrong ironSource user id parameter shows up here: test one real callback (note). |
| Unity callbacks are refused | The secret is missing; Unity only sends it after you e-mail their support. | Enter the secret Unity support sends you as Unity S2S secret. |
| No rewarded interstitial is offered after games | The placement is off, AdMob has no rewarded-interstitial unit for that platform, the user is ad-free (VIP or remove-ads), or a cap or the first-session grace applies. | Check console → Ad placements and AdMob units. Only AdMob serves this format. |
| No native ads although LevelPlay is in the native waterfall | The app renders native ads with AdMob and AppLovin MAX; LevelPlay has no native unit field in the console. | Put admob or applovin in the native waterfall. |
| Status lists "skipped" waterfall lines | An unknown name, a repeat, or a network without that format. | Use admob, applovin, unity, ironsource, one per line (formats). |
Rewarded ads refused on an emulator (reason emulator_blocked, the app shows "This action isn't allowed.") | Anti-fraud → Refuse rewarded ads on emulators is on. It blocks only rewarded-ad and rewarded-interstitial sessions. | Expected. Test on a real device, or switch it off while developing. |
03Offerwalls, surveys and revenue
| Symptom | Cause | Fix |
|---|---|---|
| The offerwall card does not appear in the app | The provider is not enabled, or the console kept it hidden because the id, an https URL with {uid} or the secret is missing. | Console → Status → "Every enabled offerwall has its id, URL and secret" says what is missing. |
Postbacks answer 403 not configured | The provider's secret is empty in config/private. | Enter it in console → Offerwalls and surveys (owner only). |
Postbacks answer 403 bad signature | Wrong secret, or the URL in the provider dashboard differs from the one in these docs. | Paste the exact URL from Postback URLs. For CPX Research, compare the parameters with your dashboard: that scheme is not confirmed by a public page. |
| A conversion was received but no points arrived | It was held (above the hold amount, or the user is flagged), or it was a duplicate, unknown user, banned user or zero points. | Check console → Review queue, and the Functions log line offerwall conversion with its outcome. |
| I approved a hold but the user got nothing | The trigger onReviewDecision credits it, usually within a minute. If it never does, the 3.1 Functions are not deployed. | firebase deploy --only functions,firestore (Migration). |
| Revenue centre: "Ad revenue: not measured" | No AppLovin MAX Report Key and no complete AdMob API connection. | Connect reporting. The first figures arrive after the next 12:00 UTC run. |
| AdMob reporting worked for a week, then stopped | The OAuth app is still in "Testing", so its refresh tokens expire after 7 days. | Publish the OAuth consent screen, create a new refresh token, enter it, press Test. |
| Store purchases listed as "price not reported" | Google Play: the Functions service account lacks "View financial data". | Grant it in Play Console → Users and permissions. |
A push campaign ends as failed | The error field of pushCampaigns/{id} in Firestore says "empty title", "team segment without teamId" (a team campaign with no team, e.g. written to Firestore by hand) or "unknown segment". | Schedule it again from console → Push campaigns; for a team, pick the team in the Team field (Push campaigns). |
| "Inactive for 7 days" reaches almost nobody after the update | 3.0 users get lastActiveAt only after their first activity in 3.1. | Expected for the first week after the update. |
04Cash wallet
| Symptom | Cause | Fix |
|---|---|---|
| The app shows no wallet; the tab says Rewards | The wallet is off, or off for this platform (iOS and web are off by default). | Console → Wallet & payouts: Cash wallet and payouts and Wallet on Android / iOS / web. Read Why iOS is off first. |
| Offerwall conversions still credit points | The reward mode is Points, or the wallet is off (the console then writes "cash" as "points" and the Status page says so). | Switch the wallet on first, then the reward mode to Cash in the wallet (Cash mode). |
A cash conversion credited nothing (outcome zero) | The provider's postback had no USD payout, or the user's share rounded down to 0. | Check the postback parameters in the provider dashboard (Postback URLs) and the user share. |
| A cash conversion is in the Review queue | It is above Hold cash offerwall credits above (cents), or the user is flagged. | Approve or reject it (holds). |
| Cash stays pending | The hold (wallet.holdDays, default 14) has not passed, or releaseWallet is not running. | Expected during the hold. After it, check Firebase console → Functions → releaseWallet logs (hourly) and that the index on entries (state, availableAt) is Enabled. |
| A user's available balance is negative | A provider reversed an offer after the cash was released or paid. | Expected. New earnings settle it; until then payouts are blocked (Reversals). |
| Status: "Cash wallet: at least one payout method and the legal pages" | The wallet is on without an enabled method, the terms or privacy URL is empty, or the wallet is on for iOS (a reminder to check the App Store rules). Crypto without a valid asset and gift cards with an empty catalog are written as off. | Enable a method with its details and fill in console → Legal. For iOS see Why iOS is off. |
05Payout requests
The app shows a translated message for each refusal reason (app/lib/ui/widgets/common.dart); the reason itself is in the Functions log of requestPayout.
| What the user sees | Reason | Fix |
|---|---|---|
| "This method isn't available in your country." | country: the method or gift card is limited to other countries, compared with the country the user picked in the payout sheet (it starts at the device region). | Check Only in these countries of the method and of each gift card. The user can change the country in the sheet if the device region is wrong. |
| "Please check the payout details." | bad_email, bad_asset, bad_address, missing_bank_field, bad_iban, bad_giftcard, bad_face_value, amount_mismatch | For crypto, check that your address pattern accepts real addresses of that network; for banks, that the field list fits the user's country. |
| "That's below the minimum for this method." | below_min: under the minimum, or the fee is as large as the amount. | Expected; or lower the minimum or the fee. |
| "That's more than your available cash." | insufficient_funds | Pending and locked cash cannot be requested. |
| "You reached a cash-out limit. Try again later." | daily_limit or monthly_limit (UTC day and month) | Expected; change the limits in Wallet & payouts (0 = no limit). |
| "Link a Google or Apple account before your first cash-out." | email_unverified: a guest account | The user links Google or Apple in the app. Or switch off the verified-account rule. |
| "Cash-outs are paused for this account." | frozen | Console → Wallets → Unfreeze, if appropriate. |
| "Your balance is negative because a partner reversed an offer." | negative_balance | Expected until new earnings settle it. |
| "That isn't available right now." | disabled, method_off, platform, account_age, no_profile | Check the wallet and method switches, the platform switch and Account age before the first payout. |
| "You reached a daily limit." | rate_limited: more than 3 requests in an hour | Expected; wait an hour. |
| A request never got a status after Approve, Reject or Mark paid | The onWalletOp trigger did not run: 4.0 Functions not deployed, or an error. | firebase deploy --only functions; then Firebase console → Functions → onWalletOp logs. The page shows the op's error when there is one. |
| A rejected request did not refund the user | Same as above: refunds are applied by the backend. | Check the op's status on the Payouts page and the onWalletOp logs. |
06PayPal Payouts
| Symptom | Cause | Fix |
|---|---|---|
| The secret's Test button or the Status check fails | Wrong client id or secret, or sandbox credentials with Live selected (or the reverse). | Copy both from the same app and tab (Sandbox or Live) in developer.paypal.com → Apps & Credentials and match the environment. |
| "Set up PayPal Payouts first (Settings → PayPal Payouts)." | No client id or secret. | Enter them (owner), or pay by hand and mark paid. |
| "Only the owner sends money through PayPal Payouts." | A manager pressed Send via PayPal. | Expected (four-eyes). The owner sends. |
The request went back to approved with "Last PayPal error" | PayPal refused the send, for example an insufficient PayPal balance, Payouts not enabled on the account, or a currency your account cannot send. | Read the error, fix it in PayPal (add funds, ask PayPal to enable Payouts), then Retry PayPal send (owner). A retry never pays twice. |
Requests stay processing for a long time | The receiver has not claimed the money (UNCLAIMED), PayPal holds it (HELD), or the webhook does not arrive. | Wait: the 30-minute poll settles it; unclaimed money returns after 30 days and the request fails with a refund. Check the webhook below. |
| The webhook answers 401 | The webhook id in the console is not the id of this webhook, or it is a sandbox id in live mode. | Copy the id of the webhook you created for paypalWebhook in the same environment. |
| The webhook answers 503 | PayPal is not configured in config/private. | Enter the credentials and the webhook id (owner). |
| PayPal shows no webhook deliveries | Wrong URL or events not selected. | URL https://REGION-PROJECT.cloudfunctions.net/paypalWebhook, with the item events and PAYMENT.PAYOUTSBATCH.DENIED (setup). |
A paid PayPal request turned failed | PayPal reported RETURNED or REFUNDED after success. | Expected: the amount went back to the user's wallet and the Business page counts it back. |
07Gift cards
| Symptom | Cause | Fix |
|---|---|---|
| Users see no gift cards | The catalog is empty or every line was invalid (listed on the Status page), or no card is available in the user's country. | Fix the catalog lines: id|brand|face values in cents|countries|your cost. |
The user cannot reveal the code (not_paid) | The request is not marked paid yet. | Mark it paid with the code. |
| Stored codes cannot be decrypted | config/private.wallet.codeKey was removed or changed by hand. | Restore config/private from your Firestore backup. Without the key the codes are lost; issue new cards. |
08Operator console
| Symptom | Cause | Fix |
|---|---|---|
| Status warns "Season, mystery box and event cosmetics exist in the Rewards store" | A season tier, a cosmetic: mystery-box prize or an unsettled event prize names an id that is no avatar, frame or theme in the Rewards store. Users would get an item the app cannot draw. | Copy the id from the Id column of console → Rewards store (Season pass). |
| I lost the setup code | It is printed in the log on each start until an owner exists. | Restart the console and read the log again. |
| Status: "Firestore is reachable" fails | No credentials, wrong project or missing role. | Check GOOGLE_APPLICATION_CREDENTIALS (path to the key file) and FIREBASE_PROJECT_ID; on Cloud Run check the service account roles. |
| Status: "App config written to Firestore" fails | The sync could not write config/public. | Fix Firestore access first; the console writes on the next save or start. |
| Ledger page or Overview counts show an index error | Firestore indexes are missing or still building. | firebase deploy --only firestore:indexes and wait until they are Enabled. |
| Stored secrets can no longer be read | ADMIN_SECRET_KEY changed or was lost. | Restore the old key. Without it, enter the secrets again. |
| Settings changes do not reach the app | The app listens to config/public live, so a change normally arrives within seconds. If not, the console could not write it. | Check the console Status page ("App config written to Firestore") and the device's network. A network switch also needs the ad SDK to initialise again: reopen the app. |
| Everything answers 403 and a "Demo console" banner shows | ADMIN_DEMO_PASSWORD is set. | Remove it (and ADMIN_DATA) on your real console. |
09Development
| Symptom | Cause | Fix |
|---|---|---|
| Emulators do not start | Java is missing or older than 21. | Install Java 21+; check java -version. |
| The app on the Android emulator cannot reach the Firebase emulators | Wrong host. | Leave EMULATOR_HOST empty (the app uses 10.0.2.2); on a real phone set it to your computer's IP. |
| The emulator says purchases or callbacks are refused | Real store and network calls do not work in the emulator. | Use devCompleteAdSession (automatic in emulator builds) and test purchases on store test builds. |