Slow Startup on Android Device


#1

Hey ,
I Just Updated my expo project to Expo sdk v28.0.0 to implement JS OTAs in Background by doing updates.fallbackToCacheTimeout: 0 to save startup time
but now the standalone build is taking loads of time( 10-15 secs ) .
while displaying <AppLoading /> im also fetching data from an api , but since the api timesout in 5 seconds and it takes(1-2 sec) in Developement mode , hence it is not the culprit .
also im recovering some bundled assets ( can they be the culprit ? ).
Please Help , Thanks in advance

Expo sdk Version : v28.0.0
React-Native : https://github.com/expo/react-native/archive/sdk-28.0.0.tar.gz

Environment : Standalone build on Android Device.


#2

sometimes with very good internet connection it takes 5 secs . but with bad internet connection it takes upto 10-15 seconds which shoud not be the case because of the 5 second time-out I implemented . this means it has something to do with JS Loading given that I have used updates.fallbackToCacheTimeout: 0 or fetching bundled fonts.


closed #3

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.