capacitor: bug: android performance issue

Bug Report

Capacitor Version

Latest Dependencies:

  @capacitor/cli: 2.2.1

  @capacitor/core: 2.2.1

  @capacitor/android: 2.2.1

  @capacitor/electron: 2.2.1

  @capacitor/ios: 2.2.1

Installed Dependencies:

  @capacitor/electron not installed


  @capacitor/cli 2.0.2

  @capacitor/core 2.0.2

  @capacitor/android 2.0.2

  @capacitor/ios 2.2.0

[success] Android looking great! �
[error] Xcode is not installed

Platform(s)

  • Android 5.0.2 (HTC One m7)
  • Android 10 (Pixel 2)

Current Behavior

The App is very slow on android. The iOS App is OK. Same app just with cordova is faster.

Expected Behavior

App should run fast.

Other Technical Details

npm --version output: 6.14.4

node --version output: v12.18.0

See video for more details: https://youtu.be/z5eqC4249QM

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 44 (22 by maintainers)

Most upvoted comments

Please provide a sample project to inspect.

If you cannot provide a sample repo, there’s no way to isolate if this is due to capacitor or a users app itself.

As I’ve stated in other issues/discussions/forum posts… debugging is key here.

https://www.youtube.com/watch?v=7XgrrO1h7Wo&lc=UgwX-p0tZBTfvLeH_vd4AaABAg

Use the devtools provided by the browser and inspect your app. Any performance issues that could appear are often due to the app and not capacitor.

Oke will try to share it ASAP.

I’ve just opened #3485 and at the end I noticed that when using a remote server, on iOS Capacitor works correctly but on Android it looks like it runs on a web platform, not natively. Maybe that’s related to these performance issues. You can check by opening the device dev tools via chrome://inspect and checking for window.Capacitor.isNative. If it’s false for you guys as well, then maybe this has something to do with it.

I can confirm it too. I’ve tested on multiple android devices, quite new actually and same! Even tested on an older phone, Galaxy S8+ and same! Capacitor on Android is totally unusable…

I’ve tested on pixel 2 xl and its very laggy. On Virtual device and real devices.

I can confirm it too. I’ve tested on multiple android devices, quite new actually and same! Even tested on an older phone, Galaxy S8+ and same! Capacitor on Android is totally unusable…