question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: live-reload not working when using adb reverse

See original GitHub issue

Bug Report

App set for live-reload with

	"android": {
		"webContentsDebuggingEnabled": true
	},
	"server": {
		"cleartext": true,
		"url": "http://localhost:8080"
	}

The app runs in the simulator, displays the “Using app server http://localhost:8080” toast, but it serves static assets from the build folder and the live-reload really does not work.

I start the Android studio with

yarn cap sync android && yarn cap copy android && yarn cap open android

Capacitor Version

💊   Capacitor Doctor  💊

Latest Dependencies:

  @capacitor/cli: 2.4.6
  @capacitor/core: 2.4.6
  @capacitor/android: 2.4.6
  @capacitor/electron: 2.4.6
  @capacitor/ios: 2.4.6

Installed Dependencies:

  @capacitor/cli 2.4.5
  @capacitor/core 2.4.5
  @capacitor/ios 2.4.5
  @capacitor/android 2.4.5
  @capacitor/electron not installed

[success] Android looking great! 👌
  Found 9 Capacitor plugins for ios:
    capacitor-dark-mode (1.0.5)
    capacitor-plugin-ios-swipe-back (1.0.3)
    capacitor-rate-app (0.1.1)
    capacitor-secure-storage-plugin (0.5.0)
    cordova-plugin-appcenter-crashes (0.5.1)
    cordova-plugin-appcenter-shared (0.5.1)
    cordova-plugin-fingerprint-aio (4.0.2)
    cordova-plugin-inappbrowser (5.0.0-dev)
    onesignal-cordova-plugin (2.11.2)
[success] iOS looking great! 👌

Platform(s)

Android

Other Technical Details

yarn --version output: 1.22.10

node --version output: v12.19.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jcesarmobilecommented, Feb 12, 2021

closing as the PR was merged, the fix will be available on next release (2.4.7)

0reactions
ionitron-bot[bot]commented, Nov 11, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get error when running ionic live reload on wifi adb
So i connected my device with wifi and the regular ionic build works fine. But when i trying to build with live reload...
Read more >
Live reload with wifi ADB not working - Ionic Forum
Hi, I am trying to debug my app trough WiFi with adb. The regular build is working fine. But the live reload(ionic cordova...
Read more >
Quest 1 adb bug: cannot adb reverse over WiFi (TCP/IP)
I want to use adb reverse over WiFi to go to localhost:3000 in Oculus Browser and debug the app. What works: - connecting...
Read more >
Debugging
Debugging. Accessing the In-App Developer Menu​. You can access the developer menu by shaking your device or by selecting "Shake Gesture" ...
Read more >
React Native App Development on Physical Android device ...
Awais Khan, adb reverse tcp:8081 tcp:8081 doesn't work on Android version 5 or below. So, You have Android device with at least version...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found