Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the time to load the Android app #25

Closed
Primokorn opened this issue Jul 2, 2018 · 3 comments

Comments

@Primokorn
Copy link

commented Jul 2, 2018

Steps to reproduce

  1. Clear your recent apps
  2. Open XBrowserSync (cold start)

Expected behaviour

Opening the app within 1-2 seconds.

Actual behaviour

The app needs more than 4 seconds.

Client app information

App Platform: Android Oreo 8.1
OnePlus 3T

Other info

The splash screen is useless. Maybe it could help to reduce the opening.
Thank you.

@nero120

This comment has been minimized.

Copy link
Member

commented Jul 2, 2018

Hi @Primokorn. The mobile apps are built on Apache Cordova so currently the loading time is dependent on that library/platform moreso than the xBrowserSync code.

A couple of things planned for the future that may resolve this, firstly I plan to port the app code to React (and TypeScript) from the deprecated AngularJS which will make all of the apps (browser and mobile feel quicker). Once that is done the way is then clear to port the mobile apps from Cordova to React Native which as they will now be native apps will load and function much quicker than they currently do.

Out of interest what phone are you experiencing this on? On my OnePlus 2 (a fairly old phone) the app loads in less than 4 seconds. Does it take the same amount of time to load if you disable your current sync, close the app and then re-open?

@Primokorn

This comment has been minimized.

Copy link
Author

commented Jul 2, 2018

Thanks for your answer and the good news!
Did you try with a cold start? Because only 2s are necessary for a hot start.
I own a OnePlus 3T using this custom rom.
Disabling the current sync doesn't change the time to load the first screen.

@Primokorn Primokorn changed the title [Enhancement] Improve the time to load the Android app Improve the time to load the Android app Jul 2, 2018

@nero120

This comment has been minimized.

Copy link
Member

commented Jul 2, 2018

Ok cool, yeah I think it's just down to the cordova/angularjs combo, two frameworks that aren't known for their native speed (though without them there wouldn't have been any xbs mobile apps!). You have very limited control over the loading process with cordova.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.