-
Notifications
You must be signed in to change notification settings - Fork 467
App closed before assets installed to local storage, app fails on next launch #31
Comments
Does it fail with exception? Any stack trace? |
Sorry, my mac was about to reboot itself so was trying to get the issue done as quickly as possible. So... This is an ionic project, on android, and basically if I load the app for the first time and close it immediately, what I assume is happening is it tries to download as many assets (in this case js files) as it can before I close the app. When I close it quickly, I'm assuming that it's not getting them all. Next time I load the app up, I get stack trace errors in chrome://inspect basically about how it could not load angular because it doesn't have those script files (they don't appear in the sources tab either). So my guess is I just haven't given it time to get all the files. When I leave the app open, about 30 seconds to a minute later it hits a breakpoint I set up in the function block where it gets events from the native side, saying it's downloaded all the files. Then it works fine on each new reload. Does this sound like what you'd expect to happen? I figure if it knows when it has downloaded all the files, it should also know when it hasn't, and it shouldn't look for them in local storage until it knows they exist there? Granted, I'm closing the app a lot quicker than a regular user would because I'm just testing out hot code push, which otherwise works great. |
Today I'll be bundling and minifying the js files, which I'm expecting to help things. Will let you know. |
Thanks for the more detailed explanation, now I understand where is the problem. Yes, when you launch application for the first time - it creates directory on the external storage and copies in it all data from the |
Could it use the manifest file to compare the files it has with the files it doesn't? |
No, it can't. |
Ok cool. Thanks Nik. Cool name by the way. ;) |
Thanks) |
Fixed in v1.0.5 |
Is this expected behaviour? Anyway around it?
The text was updated successfully, but these errors were encountered: