Mobile app taking soo long on splash screen


#1

HI,

I am having issue with mobile app after building. I have hosted the meteor app on AWS server with MUPX and working fine. But When I build the APK and IPA it takes like 30 - 40 sec to run first time after install. After First time its just fine like around 3 sec.

Here is the xCode debug of the first time

2016-12-02 20:08:38.512 Hoopla[20784:625595] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/Trainee6/Library/Developer/CoreSimulator/Devices/298BE16C-7F62-499F-8F4A-0167C7021DE7/data/Containers/Data/Application/0F8F4A06-7AF1-4679-8C9D-BE4499AD54B9/Library/Cookies/com.id1wv7fg61nhcof01rhqsd.binarycookies
2016-12-02 20:08:39.578 Hoopla[20784:625595] Apache Cordova native platform version 4.1.0 is starting.
2016-12-02 20:08:39.579 Hoopla[20784:625595] Multi-tasking -> Device: YES, App: YES
2016-12-02 20:08:39.609 Hoopla[20784:625595] 

Started backup to iCloud! Please be careful.
Your application might be rejected by Apple if you store too much data.
For more information please read "iOS Data Storage Guidelines" at:
https://developer.apple.com/icloud/documentation/data-storage/
To disable web storage backup to iCloud, set the BackupWebStorage preference to "local" in the Cordova config.xml file

2016-12-02 20:08:39.816 Hoopla[20784:625595] Using WKWebView
2016-12-02 20:08:39.817 Hoopla[20784:625595] [CDVTimer][handleopenurl] 0.074983ms
2016-12-02 20:08:39.819 Hoopla[20784:625595] [CDVTimer][intentandnavigationfilter] 2.079010ms
2016-12-02 20:08:39.819 Hoopla[20784:625595] [CDVTimer][gesturehandler] 0.057042ms
2016-12-02 20:08:41.307 Hoopla[20784:625595] Serving asset bundle version: 80d1ee5ab76efe368c8b7d9dc0fb6e7da262d7f2
[INFO] GCDWebServer started on port 12936 and reachable at http://localhost:12936/
2016-12-02 20:08:41.362 Hoopla[20784:625595] [CDVTimer][webapplocalserver] 1542.365015ms
2016-12-02 20:08:41.641 Hoopla[20784:625595] [CDVTimer][statusbar] 134.764969ms
2016-12-02 20:08:41.677 Hoopla[20784:625595] [CDVTimer][splashscreen] 36.166966ms
2016-12-02 20:08:41.855 Hoopla[20784:625595] [CDVTimer][socialsharing] 177.465022ms
2016-12-02 20:08:41.855 Hoopla[20784:625595] [CDVTimer][branchdevice] 0.084996ms
2016-12-02 20:08:41.855 Hoopla[20784:625595] [CDVTimer][TotalPluginStartup] 2038.538039ms
2016-12-02 20:08:42.763 Hoopla[20784:625595] createNotificationChecker
2016-12-02 20:08:42.763 Hoopla[20784:625595] not coldstart
2016-12-02 20:08:42.763 Hoopla[20784:625595] active
2016-12-02 20:08:42.764 Hoopla[20784:625595] PushPlugin skip clear badge
2016-12-02 20:08:44.504 Hoopla[20784:625595] THREAD WARNING: ['Device'] took '18.444092' ms. Plugin should use a background thread.
2016-12-02 20:08:46.800 Hoopla[20784:625595] Start downloading asset manifest from: manifest.json -- https://app.hoopla.social/__cordova/
2016-12-02 20:08:46.800 Hoopla[20784:625595] THREAD WARNING: ['WebAppLocalServer'] took '46.630859' ms. Plugin should use a background thread.
2016-12-02 20:08:47.974 Hoopla[20784:625796] Downloaded asset manifest for version: 8e931100cf8341b4a43105a01e3d833d6ce8fd62
2016-12-02 20:08:48.005 Hoopla[20784:625831] Start downloading assets from bundle with version: 8e931100cf8341b4a43105a01e3d833d6ce8fd62
2016-12-02 20:08:48.961 Hoopla[20784:625913] [CDVTimer][assetBundleDownload] 955.591977ms
2016-12-02 20:08:48.961 Hoopla[20784:625787] Finished downloading new asset bundle version: 8e931100cf8341b4a43105a01e3d833d6ce8fd62
2016-12-02 20:08:48.979 Hoopla[20784:625595] Serving asset bundle version: 8e931100cf8341b4a43105a01e3d833d6ce8fd62
2016-12-02 20:08:49.348 Hoopla[20784:625787] Start: 8175722687a34fd68f472063827ffc8f
2016-12-02 20:08:49.359 Hoopla[20784:625595] THREAD WARNING: ['BranchDevice'] took '10.192139' ms. Plugin should use a background thread.
2016-12-02 20:08:49.360 Hoopla[20784:625595] Appsee is working!
2016-12-02 20:08:49.443 Hoopla[20784:625831] Push Plugin register called
2016-12-02 20:08:49.443 Hoopla[20784:625831] PushPlugin.register: setting badge to false
2016-12-02 20:08:49.444 Hoopla[20784:625831] PushPlugin.register: clear badge is set to 0
2016-12-02 20:08:49.444 Hoopla[20784:625831] PushPlugin.register: better button setup
2016-12-02 20:08:49.445 Hoopla[20784:625831] GCM Sender ID (null)
2016-12-02 20:08:49.445 Hoopla[20784:625831] Using APNS Notification
2016-12-02 20:08:49.455 Hoopla[20784:625595] Push Plugin register failed
2016-12-02 20:08:51.035 Hoopla[20784:625595] active
2016-12-02 20:08:51.035 Hoopla[20784:625595] PushPlugin skip clear badge

#2

I am facing the warning -> THREAD WARNING: [‘File’] took ‘25.014160’ ms. Plugin should use a background thread.
Did you ever find a way to fix the ones you mention here?

Thanks!