Skip to content

Fix Android Capacitor WebView binding and cleartext traffic configuration - #5

Merged
aimenng merged 1 commit into
codex/create-mobile-app-and-generate-apkfrom
copilot/sub-pr-4
Feb 12, 2026
Merged

Fix Android Capacitor WebView binding and cleartext traffic configuration#5
aimenng merged 1 commit into
codex/create-mobile-app-and-generate-apkfrom
copilot/sub-pr-4

Conversation

Copilot AI commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

Android Capacitor app was unable to bind to WebView programmatically and blocking HTTP traffic in development.

Changes:

  • AndroidManifest.xml: Added android:usesCleartextTraffic="true" to enable HTTP traffic for local development servers
  • activity_main.xml: Added android:id="@+id/webview" to WebView element to enable programmatic access from MainActivity
<WebView
    android:id="@+id/webview"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

These minimal changes resolve WebView initialization issues and allow the app to communicate with local development endpoints.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel

vercel Bot commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gifts-couple-connection Canceled Canceled Feb 12, 2026 10:25am

Copilot AI changed the title [WIP] Fix unexpected error in Codex-generated pull request Fix Android Capacitor WebView binding and cleartext traffic configuration Feb 12, 2026
Copilot AI requested a review from aimenng February 12, 2026 10:26
@github-actions

Copy link
Copy Markdown

Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information

@aimenng
aimenng marked this pull request as ready for review February 12, 2026 10:30
@aimenng
aimenng merged commit 815f17c into codex/create-mobile-app-and-generate-apk Feb 12, 2026
3 of 4 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