I’ve updated my app to use ionic v2 RC4 today, and when I’ve run the app on my Android device, the app’s loading time has increased a bit in comparison with the previous ionic 2 version.
Now, after the splashscreen fades, the app still spends about 2 seconds more in a blank screen before showing the app.
Is anyone else experiencing this issue? Any advice about what can I do?
Have you also upgraded ionic-app-scripts to 0.0.47? If so the builds are now in development (non-AoT) mode by default. Use ionic run android --prod to do a production build with AoT and minification. This should result in faster boot time.
Why did you delete the platform folder? You can delete the android folder INSIDE the platform folder, but not the whole thing!
You’ll have to re-create the folder structure by creating platforms folder in the root. Then adding platforms.json with the content: { }
in there.
Next you have to run “ionic platform add android”.
I am also seeing a big difference in load time. I just upgraded to RC4, scrips 0.47 and in prod mode too its take like 10sec to load the app. It was loading under 5 sec with rc3 and 0.45.
There are currently two issues regarding the blank screen. If you open the browser console you’ll probably also see there is an error "Uncaught Error: Cannot find module “./app.module.ngfactory” If not it might be another bug.
I was using ios-depoy and ios-sim to run on device. When I use build and then run from xcode, the boot time is again back to ~5 sec. Just putting this here is someone seeing this issue.
Edit: I was wrong the time it takes is still about 9 seconds. This is not very good.
Could you please confirm that using 2.0.9 version of typescript helped you? It is mentioned in official guide for migration to use 2.0.9 and I have performance issues with it.
Hi. Yes, I confirm that typescript v 2.0.9 has worked for me.
But I have to state that my app is pretty simple. And the only performance issue I had was the app’s loading time, that was solved by using typescript 2.0.9 along with the --prod build of the app.