-
Notifications
You must be signed in to change notification settings - Fork 333
Update hangs on "Installing update" #240
Comments
@marpstar - hi, thank you for your question. Have you tried to release another update to see if you will be able to apply it? |
In reference to the network tab, the response from the I have pushed several releases and have no been able to consistently get them to download. |
Upon further investigation, it looks like the problem was related to these issues with Ionic and zone.js
With the key point being that the reference to Loading cordova.js AFTER loading polyfills.js seems to have resolved this problem for me. Closing this issue. Thanks for your help! |
@marpstar - awesome, thank you so much for detailed investigation of the issue, would be useful for further reference if we see same issues with ionic. |
Description
After deploying an update to CodePush, my iOS simulator and device see the update, download the update (questionable, see below), and get stuck trying to install the update.
I've got everything set up inside of an Ionic 2 app. After the app has loaded and the user hits the login screen, I call
sync()
. I see the console notifications for "Checking..." then "Downloading..." then finally "Installing", where it hangs indefinitely.I've been able to get the update mechanism to work only once. I can download the update package with the provided download URL, and everything looks correct.
One potential oddity I did notice was in the network traffic: after the call to the
updateCheck
method on the server, there's another call to adownload
method on the CodePush server. Thisdownload
call returns a 2-byte response (OK
), and nothing else happens? Maybe this is expected behavior.I've debugged through the code and it seems to narrow down to this line of code. It goes into the call to
FileUtil.readFileEntry(manifest, callback)
, and callback is never called. Digging even deeper intofileUtil.js
, I can see that neitheronloadend
noronerror
callbacks forfileReader
are ever hit after I step overfileReader.readAsText(file)
.Additional Information
The text was updated successfully, but these errors were encountered: