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.

Start app very slow and bad FPS on Android device

See original GitHub issue

What’s going on? My device: Sony xzs, android 8.0.0

Steps to reproduce

  1. Create a new app using ignite
  2. yarn and run on Device
  3. The first time open app always slow, delay about 30s to 1 minutes to start app, i was using ignite old version before, about version 5.x its ok, not slow. But now with 6.2.0 on the same device was slow, i don’t know the reason why.

ignite doctor results: version 6.2.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
mzohrabcommented, Nov 27, 2021

Sorry for late response. I am back with some results that may help everyone with the same issue. As I have stated above that I use bowser boilerplate in all my RN apps, and each one had the same problem. Start up time takes to 15-20 seconds sometimes and freezes several seconds when the initial screen is visible. Nothing did not help (enabling hermes, caching images, removing console usages and etc.). Then, just bypassed the issue as it worked fine on newer android devices. But yesterday, it eventually got on my nerves and I decided to find the culprit. And I found! It is react-native-keychain package. It will kill your apps startup performance. If you have an older device (mine is Xiaomi MI 6) it gets worse. The package loads very slow and throws exception multiple times: android.security.keystore.StrongBoxUnavailableException

Keychain is being used in the boilerplate in utils section (app/utils/keychain.ts). So workarounds would be:

Additionally, I have found a thread, where the issue is escalated. Check that below. https://github.com/oblador/react-native-keychain/issues/314

Hope this update would be helpful for someone.

0reactions
frankcalisecommented, Aug 16, 2022

react-native-keychain removed in #2003 - will be released in Ignite v8: Maverick

Another recommendation for anyone looking for similar functionality would be to check out Expo’s SecureStore

Read more comments on GitHub >

github_iconTop Results From Across the Web

Slow rendering - Android Developers
If your app suffers from slow UI rendering, then the system is forced to skip frames and the user will perceive stuttering in...
Read more >
Why is my Android slow? 8 ways to troubleshoot your phone
When your phone starts to run low, things will slow to a crawl. Google claims you'll notice performance issues when there's less than...
Read more >
Why is My Android Running So Slow? - Technipages
1 – App services running in the background at start-up​​ This can use up precious memory. Restart your Android, then check under “Settings”...
Read more >
5 Ways To Deal With Super Slow Apps - Popular Mechanics
Solution: Clear the cache for your slowest apps. On Apple devices: -Tap Settings > General > Storage & iCloud Usage. Then, in the...
Read more >
Speed up a slow Android device - Google Support
Speed up a slow Android device. Try the steps on this page if your phone: Runs very slowly; Lags; Takes a long time...
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