White screen in a Telegram Mini App: six checks before changing the setup
Is your Mini App blank while Telegram still works? Record the affected client and launch route, then use six checks and a free sheet to identify the failing boundary.
If Telegram Web itself fails before you can open your app, this Mini App checklist does not diagnose that client failure. If Telegram opens but your Mini App is blank, start with the device, OS, Telegram version, launch route and first failed request or script.
The six checks below help separate launch, framing, storage, authentication, viewport and delivery failures. Download the full editable diagnostic sheet without a login or contact details. A browser run can help inspect the interface; it does not replace a retest in the affected Telegram client. The checks are hypotheses, not a universal fix or a measured distribution of causes.
Download the free Telegram Mini App launch diagnostic sheet (Markdown)
No login, contact details or purchase required. Keep the file in your own workspace; do not upload completed private records through the scope-request form.
Capture the failing boundary
URL / release / test time:
Device / OS / Telegram client version:
Launch route / expected first usable screen:
First failed request or script / safe error ID:
Server response / client console evidence:
Reproduction steps / UNKNOWN observations:
Proposed change / retest result:
Avoid putting tokens, raw initialization data or personal records in shared screenshots and logs. A browser emulation run helps inspect layout, but it does not replace a test in the affected client. The fixtures below are proposed checks, not a claim that this studio ran a device matrix.
Six checks before choosing a fix
Scroll horizontally to compare all columns on a narrow screen.
| Boundary | Evidence to collect | Candidate repair to test |
|---|---|---|
| Launch and bridge | Actual launch route and SDK availability | Supported launch configuration and explicit fallback |
| Framing policy | Browser console and response headers | Narrow policy consistent with the intended embedding chain |
| Storage startup | Exact exception and origin/policy state | Safe failure handling for optional preferences |
| Authentication | Server validation result and age policy | Correct validation and a recoverable session-expired screen |
| Viewport and keyboard | Focus, resize and visible controls | Layout that follows the observed client viewport |
| TLS and delivery | Certificate validation and failed asset requests | Correct chain, reachable assets and clear error state |
Six checks for one failing launch
These are proposed checks. Use synthetic fixtures in an agreed test environment and record expected results before running them.
| ID | Check | Setup | Expected result |
|---|---|---|---|
| M1 | Launch route and bridge | Record device/OS/client version, exact launch steps and first usable screen. Compare a documented supported route with the agreed browser/unsupported route; inspect bridge availability. | Supported route reaches the expected screen or yields a specific failure to investigate. No bridge-dependent crash in an unsupported route; show the agreed fallback. Bridge presence is not authentication. |
| M2 | Framing policy | For the actual browser-hosted embedded route, inspect the ancestor chain, served CSP/X-Frame-Options and console refusal. Record only sanitized policy evidence. | Determine whether the observed policy blocks the intended route. Test a narrow change only when evidence supports it; preserve frame protection. No framing evidence means this cause remains unconfirmed. |
| M3 | Storage startup | Capture the exact optional-preference storage exception in the failing context. Compare normal access with an authorised simulated failure. | Optional preference failure yields the agreed default/error state without blocking startup. No fallback silently claims a saved order, durable record or authenticated session. |
| M4 | Authentication | Have the authorised operator test valid, missing, modified and aged synthetic initialization data against the agreed server policy; share only safe validation results. | Only valid, sufficiently fresh data establishes the intended session. Rejections produce a recoverable error. No disabled validation, trusted initDataUnsafe or raw data/token disclosure. |
| M5 | Viewport and keyboard | In the affected real client, focus/dismiss inputs, rotate where supported and return from background. Record inaccessible controls and observed viewport changes. | Required controls remain reachable and keyboard/focus usable in the agreed states, or a precise failure is recorded. Emulator layout alone cannot pass a real-client check. |
| M6 | TLS, assets and recovery | Inspect affected-client certificate validation, served chain and first failing bundle/API request. Preserve safe error and release IDs; compare cache/release conditions. | Identify the first evidenced delivery/runtime failure; verify HTML plus required assets/API. A tested repair reaches the first usable screen or a truthful recoverable error, without suppressed failures. |
Reproduction and evidence record
Record release/URL label and UTC time; device/OS/client version; launch route and exact reproduction steps; expected first usable screen; observed symptom; first failed request/script and safe error ID; sanitized server/console evidence; boundary hypothesis and confidence/UNKNOWN; authorised candidate change and rollback; observed retest in the same client/version/route; normal/unsupported route regression results; untested clients; reviewer and next-action owner. Do not share raw initData, tokens, personal logs or identifying URLs.
Decision and retest
Start from the first evidenced failure, not a guessed platform-wide cause. Mark each boundary PASS, FAIL, PENDING or justified N/A against its agreed criterion. Change one relevant condition at a time with the responsible operator. Keep original evidence, compare the same affected client/route and record other clients as untested. A diagnosis can remain inconclusive when traces or real-client retests are missing; do not weaken framing or authentication to make the screen appear.
Worked example
Fictional worked example — not a client result or an executed test: Case M3; release/URL label: demo-v1 / sandbox app; time: simulated, no execution timestamp; device/OS/client: synthetic device / OS-X / client-C, not a claimed supported device; route: sandbox launch fixture. Steps: launch, trigger optional-preference read failure. Expected screen: app home with default theme. Observed symptom: blank view; first failure: SecurityError at preference read; server HTML: fixture 200; console evidence: fictional F-M3. Hypothesis: uncaught optional-preference error blocks startup; confidence: fixture only. Candidate change: catch the preference error and choose the default; authorised owner: demo maintainer; rollback: demo-v1. Retest: demo-v2 fixture reaches home, default theme; verdict PASS in this fictional fixture. Normal-route regression: PENDING; unsupported route: PENDING; real clients: untested. Reviewer/date: fictional reviewer, not executed; next action: run authorised affected-client retest.
1. Launch route and SDK bridge
Compare a supported Mini App launch with an ordinary URL opened in a browser. Do not assume the Telegram bridge is available in every environment. Check the documented SDK setup and gate bridge calls on availability.
// Illustrative bridge availability check, not authentication.
const tg = typeof window !== 'undefined' ? window.Telegram?.WebApp : undefined;
if (tg) {
tg.ready();
} else {
// Render the application's supported browser or unsupported-launch state.
}
Presence of a bridge object does not authenticate a user. Keep server-side validation separate from this display decision.
2. Framing restrictions
For a browser-hosted embedded route, inspect the actual ancestor chain and the served Content-Security-Policy and X-Frame-Options headers. A console refusal to frame the page is evidence to investigate; a white screen without that error is not.
The frame-ancestors directive checks the embedding ancestors. Review the narrow policy needed by the actual route, including any headers inherited from a proxy. Do not remove frame protection or allow every origin merely to clear an error. Test a policy change with the responsible operator rather than copying a broad nginx rule from an article.
3. Storage access during startup
Storage can fail because of an origin or policy restriction, quota or another runtime error. Do not assume that every private session or iOS WebView blocks storage. Inspect the exception and handle failure at the actual access point.
// Optional display preference only; not a token or durable business record.
function readPreference(key) {
try {
return window.localStorage.getItem(key);
} catch {
return null;
}
}
An in-memory fallback disappears when its lifetime ends. It must not silently turn a failed persistence operation into a confirmed saved order or authenticated session. Review the applicable storage API and data policy before moving information to another service such as Telegram CloudStorage.
4. Initialization-data validation
Telegram documents validation of raw initData before server use and warns against trusting initDataUnsafe. Use the current official algorithm or a reviewed implementation and test missing, modified and aged data. A decoding or canonicalisation mismatch is one possible cause of rejection.
Choose the accepted age and session-renewal behaviour for the application. Show a clear recoverable state when authentication fails; an infinite loader does not explain whether the server rejected the session or a request never returned. Do not log the bot token or weaken validation to make the page render.
5. Viewport and virtual keyboard
Test focusing and dismissing inputs, rotating the device and returning from the background. Record which control becomes inaccessible. Telegram exposes viewport information, but behaviour and supported features depend on the client version and launch mode.
Use the available viewport and safe-area information as appropriate, with a browser fallback. Keep zoom and keyboard access usable. Calling an expansion method or setting a viewport variable is not proof that all layout states work.
6. TLS, asset loading and error recovery
Inspect certificate validation, the served chain and the failed request on the affected device. Different clients can have different trust and cache state; a missing intermediate is a candidate to verify, not a universal explanation of iOS failures.
Check that application bundles and API requests load as well as the first HTML document. An early script error or stale asset can leave no usable interface even when the main response is 200. Provide a safe error state and a support identifier rather than suppressing exceptions.
Retest the observed path
Keep the failing fixture, change one relevant condition and repeat it in the affected client. Also check the normal launch and an unsupported route. Record untested clients explicitly. Request a scope with the client/version, failing boundary and evidence packet; avoid accepting a claimed platform-wide fix without a reproduced case.
Sources
Checked 15 October 2026: Telegram Mini Apps, localStorage exceptions and frame-ancestors.
Telegram Mini App Launch Diagnosis
For teams operating a Mini App that fails in a specific Telegram client or launch route, Agent Reliability Lab offers asynchronous diagnosis of one app release and one reported launch case across the six boundaries above. After the evidence-sharing scope is agreed, provide sanitized reproduction steps, client/OS versions, launch configuration and redacted request, console and server-validation evidence. No token or raw initialization data is needed in the initial form.
The written result identifies the evidenced failure boundary or explains what remains unproven, lists candidate repairs and gives a targeted retest plan. One written clarification round is included. Scope guide: €300 for this bounded diagnosis; the final scope and price are confirmed in writing before work starts.
This scope reviews supplied evidence. It does not include implementation, new device testing, production configuration changes or a universal Telegram Web fix. Required real-client testing and any later repair work are scoped separately; an inconclusive finding is possible when evidence is missing.
This requests a scope; it does not order work or take payment. Share sanitized evidence only after the scope and handling arrangements are agreed.
- Is the exact Telegram client version and launch route recorded for the failed case?
- Can startup and storage failures show a useful error without inventing an authenticated session?
- Are initData validation, keyboard interaction and certificate failures tested separately?