Skip to content

fix(playground): local SDK is blocked on Android emulator#20

Merged
pandeymangg merged 1 commit into
mainfrom
fix/local-sdk-is-blocked
Jun 18, 2026
Merged

fix(playground): local SDK is blocked on Android emulator#20
pandeymangg merged 1 commit into
mainfrom
fix/local-sdk-is-blocked

Conversation

@itsjavi

@itsjavi itsjavi commented Jun 18, 2026

Copy link
Copy Markdown
Member

This PR fixes loading the SDK from http://10.0.2.2:3000/js/surveys.umd.cjs on Android's Playground.

Error log:
Details
I/flutter ( 6880): 🧱 Formbricks - 2026-06-18T18:19:07.496812 [DEBUG] - [Console] {"type":"error","log":"Failed to load Formbricks Surveys library: {\"isTrusted\":true}"}
I/ImeTracker( 6880): com.formbricks.formbricks_playground:3e73f2d9: onRequestShow at ORIGIN_CLIENT reason SHOW_SOFT_INPUT fromUser false
D/InsetsController( 6880): show(ime())
D/WindowOnBackDispatcher( 6880): setTopOnBackInvokedCallback (unwrapped): android.view.ImeBackAnimationController@3dcf3f8
D/InsetsController( 6880): Setting requestedVisibleTypes to 511 (was 503)
I/ImeTracker( 6880): com.formbricks.formbricks_playground:ad2953b2: onCancelled at PHASE_CLIENT_ANIMATION_CANCEL
D/FlutterJNI( 6880): Sending viewport metrics to the engine.
D/FlutterJNI( 6880): Sending viewport metrics to the engine.
W/RemoteInputConnectionImpl( 6880): requestCursorUpdates on inactive InputConnection
D/FlutterJNI( 6880): Sending viewport metrics to the engine.
I/ImeTracker( 6880): system_server:79495a90: onCancelled at PHASE_CLIENT_ON_CONTROLS_CHANGED
W/RemoteInputConnectionImpl( 6880): getSurroundingText on inactive InputConnection
D/FlutterJNI( 6880): Sending viewport metrics to the engine.
D/FlutterJNI( 6880): Sending viewport metrics to the engine.
D/FlutterJNI( 6880): Sending viewport metrics to the engine.
D/InputConnectionAdaptor( 6880): The input method toggled cursor monitoring on
D/FlutterJNI( 6880): Sending viewport metrics to the engine.
D/FlutterJNI( 6880): Sending viewport metrics to the engine.
D/FlutterJNI( 6880): Sending viewport metrics to the engine.
D/FlutterJNI( 6880): Sending viewport metrics to the engine.
D/FlutterJNI( 6880): Sending viewport metrics to the engine.
D/WindowOnBackDispatcher( 6880): setTopOnBackInvokedCallback (unwrapped): android.app.Activity$$ExternalSyntheticLambda0@a9aa5ab
D/FlutterJNI( 6880): Sending viewport metrics to the engine.
D/WindowOnBackDispatcher( 6880): setTopOnBackInvokedCallback (unwrapped): android.view.ImeBackAnimationController@3dcf3f8
D/FlutterJNI( 6880): Sending viewport metrics to the engine.
I/ImeTracker( 6880): com.formbricks.formbricks_playground:3e73f2d9: onShown
D/FlutterJNI( 6880): Sending viewport metrics to the engine.
D/FlutterJNI( 6880): Sending viewport metrics to the engine.
E/chromium( 6880): [ERROR:aw_browser_terminator.cc(165)] Renderer process (7456) crash detected (code -1).

@itsjavi itsjavi requested a review from pandeymangg June 18, 2026 16:58
@itsjavi itsjavi changed the title fix(playground): local SDK was blocked on Android emulator fix(playground): local SDK is blocked on Android emulator Jun 18, 2026
@sonarqubecloud

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 59f85529-025a-492c-aee4-2f02e64d3b38

📥 Commits

Reviewing files that changed from the base of the PR and between a4b11c6 and 5c5016b.

📒 Files selected for processing (1)
  • apps/playground/android/app/src/debug/AndroidManifest.xml

Walkthrough

The Android playground app's debug manifest (apps/playground/android/app/src/debug/AndroidManifest.xml) is updated to include an <application android:usesCleartextTraffic="true" /> entry. This change is scoped to the debug source set and permits plaintext HTTP traffic, enabling a locally served WebView runtime script to load during development. Comments in the file note that this setting is not applied to release builds.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: fixing the local SDK blocking issue on the Android emulator, which aligns with the changeset that enables cleartext traffic for HTTP loading.
Description check ✅ Passed The description is directly related to the changeset, explaining the root cause (cleartext HTTP traffic blocking) and providing error logs that document the SDK loading failure being addressed.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@pandeymangg pandeymangg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@pandeymangg pandeymangg merged commit 86c98e1 into main Jun 18, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants