Skip to content
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

[5.0.0-beta] first sync has no packageHash in query #1000

Closed
lisong opened this issue Sep 14, 2017 · 4 comments
Closed

[5.0.0-beta] first sync has no packageHash in query #1000

lisong opened this issue Sep 14, 2017 · 4 comments

Comments

@lisong
Copy link

lisong commented Sep 14, 2017

Steps to Reproduce

  1. install demo app
  2. click sync
  3. it's download full package in first sync, it should show "App up to date"

Expected Behavior

/updateCheck?deploymentKey=BPPCDEeergFkpHur4YNXCjqXVjR6qLF160UDg&appVersion=2.0.0&packageHash=16bd9232a31ecdc4cfd01a660dbd81e28b3e5709a1505daf429028c5ec49fe9f&isCompanion=&label=&clientUniqueId=319708d364f191f1

Actual Behavior

What actually happens?

/updateCheck?deploymentKey=BPPCDEeergFkpHur4YNXCjqXVjR6qLF160UDg&appVersion=2.0.0&packageHash=&isCompanion=&label=&clientUniqueId=319708d364f191f1

Environment

  • react-native-code-push version: 5.0.0-beta
  • react-native version: 0.47.1
  • iOS/Android/Windows version: Android
  • Does this reproduce on a debug build or release build? both
  • Does this reproduce on a simulator, or only on a physical device? both
@sergey-akhalkov
Copy link
Contributor

Hi @lisong, thanks for reaching us. Yeah, that's known "issue" and we've tried to fix it but reverted our changes due to the following issues: #906, #910

We've already deployed server-side changes needed to fix the issue, so you could try to perform this changes and verify if it works for you. We also gonna test it and in case everything works well - we'll create PR.

@lisong
Copy link
Author

lisong commented Sep 15, 2017

OK

@lisong
Copy link
Author

lisong commented Mar 17, 2018

why v5.3.2 not fix

  let queryPackage;
  if (localPackage) {
    queryPackage = localPackage;
  } else {
    queryPackage = { appVersion: config.appVersion };
    if (Platform.OS === "ios" && config.packageHash) {
      queryPackage.packageHash = config.packageHash;
    }
  }

@lisong
Copy link
Author

lisong commented Sep 5, 2018

i read the code. it could not solve this problem in client. it's complicate. diff update way need copy current package to generate new packages, but android resource it in apk. could we contact react-native team, proposal storage bundle and res in other place ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants