Reputation: 363
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.
Upvotes: 2
Views: 582
Reputation: 363
Solved it myself. The problem is the launch-screen package.
meteor remove mobile-experience
meteor add fastclick
meteor add mobile-status-bar
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
Reputation: 1
Add this within your layout onRendered
if (Meteor.isCordova) {
navigator.splashscreen.hide();
}
Upvotes: 0
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