Comments (4)
@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:
- 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. - 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. - 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 withsync
being run multiple times in parallel, so I just want to check if this is happening for you. - If you simply call
codePush.checkForUpdate
does the hang go away? I want to try to narrow down the issue tosync
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.
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:
- Just adding the plugin doesn't cause any problem
- Yes, it is called only once. I've checked.
- No, it seems to happen with any of the CodePush methods.
from code-push.
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.
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)
- Generate bundles with Management SDK? HOT 1
- How Staging/Production keys relate to debug/release builds on Android
- Update Docs: releaseStaging React Native Android variant keeps crashing HOT 2
- How are you supposed to configure "Staging builds" and "Production Builds" HOT 4
- Security vulnerability in code-push: appcenter-file-upload-client, superagent HOT 2
- api 30 error access denied HOT 2
- Support for React Native for macOS HOT 2
- App Center Status: Over 4 days that "Distribute is Experiencing Issues" HOT 3
- Select multiple labels when patching releases HOT 2
- CodePush for React-Native-Web Support HOT 5
- CodePushHttpError pass response as error cause HOT 4
- 4.1.0 has no d.ts files HOT 12
- how to set custom label or add another custom field for specify my own build number/version? HOT 4
- IOS APP CRASHES After receiving OTA works fine when no codepush Downloaded Memory issue HOT 2
- Publish 4.2.0 to NPM? HOT 2
- User Data Privacy Policy HOT 3
- Can we test a new React Native App which is not uploaded or published on Playstore? HOT 2
- the dependency proxy-agent has been renamed, The new is no longer dependent socks-proxy-agent. HOT 2
- React Native app: update native code HOT 1
- App Store Rejected - Guideline 2.3.1 - Performance HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from code-push.