-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cordova] My app hangs in iOS simulator after implementing CodePush SDK (randomly) #147
Comments
@jrebagliatti That is bizarre! We haven't seen this issue before. If you take a look at the Safari developer console, what do you see the logs saying when you call Additionally, just so I have some more detail:
Thanks! Sorry for the inconvenience. We'll try to narrow down this problem ASAP :) |
Thanks for your response @lostintangent! Since the problem is in the app initialization I wasn't able to use the Safari developer console. Any trick I've tried to stop the initialization (and give me some time to start the console) makes the app to work properly... Regarding your questions:
|
Did you try running "location.reload()" in the console to force a re-initialization to see the logs? That is how I always work around this debugging limitation :) Also, could you answer question #2 above? That will be really useful in us trying to capture a repro. It's super weird that you're hitting this issue just by calling any API method! |
Thanks for all your help!. I've restarted the simulator and the app started working as expected, so I'm closing the issue. I think the issue could be related with the simulator and not with the CodePush API. Just FYI reloading the page didn't help because the app worked nicely every time I reloaded it. Regarding the question #2 I was using Thank you very much for your time! |
Hi guys. I've followed the steps to implement CodePush in a blank Cordova app, and after adding the
codePush.sync()
call, my app hangs most of the times. I added theonStatusChange
callback and confirmed that the function is called at least once before hanging.I also found a workaround, which is to call the
sync
method from asetTimeout
, a second before initialization.I'm deploying to the iOS simulator.
Any ideas?
Thanks,
Javier
The text was updated successfully, but these errors were encountered: