Gautham Elango
Gautham Elango

Reputation: 363

Meteor Cordova startup time is ridiculously slow?

As you can see in the gif, the startup time of the localmarket ios meteor app is ridiculously long. It took around 7 seconds normally, however once i added fastrender and fastclick, it dropped down to 4 seconds. Why is this? I noticed the Verso app loads far faster. How can I make a meteor ios app that loads faster? 4 seconds absolutely kills users, and this happens everytime the app is restarted. Any fix to this?

Btw, appcache breaks this application.

LocalMarket

enter image description here

Upvotes: 2

Views: 582

Answers (3)

Gautham Elango
Gautham Elango

Reputation: 363

Solved it myself. The problem is the launch-screen package.

  1. meteor remove mobile-experience

  2. meteor add fastclick

  3. meteor add mobile-status-bar

  4. meteor add meteorhacks:fast-render

Worked like a charm for me. Heres an article I wrote on this topic: https://medium.com/@gautham.gg/reduce-the-launch-time-of-a-meteor-mobile-app-e2f009951011#.8uovmstb5

Upvotes: 6

Karl Danninger
Karl Danninger

Reputation: 1

Add this within your layout onRendered

if (Meteor.isCordova) {
    navigator.splashscreen.hide();
}

Upvotes: 0

user5938635
user5938635

Reputation:

Change your splash screen time from AppDelegate.m

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{

    [NSThread sleepForTimeInterval:5.0]; //5 is the time in second for splash screen
    .
    .
    .
}

Upvotes: 0

Related Questions