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: android performance issue

See original GitHub 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

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
allocenxcommented, Aug 28, 2020

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.

1reaction
simonhaenischcommented, Aug 28, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android faces a performance crisis that only Google can fix
It's a nuanced problem with no easy solutions, though there are a few ways it can be better — particularly if Google can...
Read more >
Slow rendering - Android Developers
Rendering performance: UI Thread ... If Record View#draw is taking a long time, it's often the case that a bitmap is being painted...
Read more >
Speed up a slow Android device - Google Support
Troubleshoot apps on your phone for slowness · Restart in safe mode · Check if the problem goes away · Restart your phone...
Read more >
Types of performance bugs found in Android apps
(2020) who manually analysed 500 commits that fixed performance bugs in Android and iOS apps. This analysis allowed them to build a taxonomy...
Read more >
Detect and Resolve Performance Problems on Android - Code
It's relatively easy to check your app for overdraw. Large amounts of overdraw can indicate an underlying problem with your app's user interface ......
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