Giter Club home page Giter Club logo

Comments (4)

lostintangent avatar lostintangent commented on May 17, 2024

@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 sync? That might help provide some indication of the problem.

Additionally, just so I have some more detail:

  1. Did the hang only happen after adding the call to sync? Specifically, did simply adding the CodePush plugin to your app not result in a hang? I wouldn't expect it to, but I just want to narrow the issue down to you actually calling into our SDK.
  2. How are you deploying the app? Are you using cordova emulate ios, cordova run ios, ionic run ios --livereload, etc? It would be helpful to know this so we can get a repro.
  3. Is onDeviceReady being called only once? If you added a breakpoint or a log message inside of it, would it be hit/logged multiple times? It's possible we have an issue with sync being run multiple times in parallel, so I just want to check if this is happening for you.
  4. If you simply call codePush.checkForUpdate does the hang go away? I want to try to narrow down the issue to sync if possible, as opposed to any network activity generated by our SDK.

Thanks! Sorry for the inconvenience. We'll try to narrow down this problem ASAP :)

from code-push.

jrebagliatti avatar jrebagliatti commented on May 17, 2024

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:

  1. Just adding the plugin doesn't cause any problem
  2. Yes, it is called only once. I've checked.
  3. No, it seems to happen with any of the CodePush methods.

from code-push.

lostintangent avatar lostintangent commented on May 17, 2024

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!

from code-push.

jrebagliatti avatar jrebagliatti commented on May 17, 2024

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 cordova run ios.

Thank you very much for your time!

from code-push.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.