Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
This repository was archived by the owner on May 20, 2025. It is now read-only.

Codepush signing of release #23

Closed
Closed

Description

We are currently using appcenter codepush CLI to release update. We are using --private-key-path to sign the update. Releasing with the react-native-code-push CLI doesn't have support for --private-key-path which causes the app (which verifies the downloaded update) to output:

10-16 10:19:51.588 966 966 D ReactNative: [CodePush] Loading JS bundle from "assets://index.android.bundle"
10-16 10:19:53.599 966 1085 D ReactNative: [CodePush] Applying full update.
10-16 10:19:53.601 966 1085 E ReactNative: [CodePush] Exception
10-16 10:19:53.601 966 1085 E ReactNative: com.microsoft.codepush.react.CodePushInvalidUpdateException: Error! Public key was provided but there is no JWT signature within app bundle to verify. Possible reasons, why that might happen:
10-16 10:19:53.601 966 1085 E ReactNative: 1. You've been released CodePush bundle update using version of CodePush CLI that is not support code signing.
10-16 10:19:53.601 966 1085 E ReactNative: 2. You've been released CodePush bundle update without providing --privateKeyPath option.
10-16 10:19:53.601 966 1085 E ReactNative: at com.microsoft.codepush.react.CodePushUpdateManager.downloadPackage(CodePushUpdateManager.java:278)
10-16 10:19:53.601 966 1085 E ReactNative: at com.microsoft.codepush.react.CodePushNativeModule$3.doInBackground(CodePushNativeModule.java:298)
10-16 10:19:53.601 966 1085 E ReactNative: at com.microsoft.codepush.react.CodePushNativeModule$3.doInBackground(CodePushNativeModule.java:292)
Should we sign the update as a pre-step to "code-push-standalone release-react" or can we, and is it recommended, to somehow disable the need of validating signing in our app?

Activity

  1. lucen-ms commented on Oct 17, 2024

    @lucen-ms
    Collaborator

    I'm sorry the current version does not support code signing but we will add it soon to have a feature parity with the current appcenter-cli version.

  2. lucen-ms commented on Oct 23, 2024

    @lucen-ms
    Collaborator

    Codepush signing has been implemented

  3. dorit-lt commented on Mar 14, 2025

    @dorit-lt

    I am still seeing this issue even when I codesign using --privateKeyPath.

  4. saransh-malik commented on Mar 18, 2025

    @saransh-malik

    Yup still not working, I see when releasing it says "Generated a release signature and wrote it " but even then the download fails. The private-public key pair we use is the same as before and so I am sure I am using the right public key in the app. There is still some issue with the signing. Lukas Cenovsky (@lucen-ms)

  5. dorit-lt commented on Mar 19, 2025

    @dorit-lt

    I have this issue only when i try to specify an output directory. Something with code signing seems to get messed up when that is defined.

  6. saransh-malik commented on Mar 19, 2025

    @saransh-malik

    Lukas Cenovsky (@lucen-ms) That's the way to replicate it, the signing doesn't work if you specify an output directory. Can we please re-open this?

  7. lucen-ms commented on Mar 19, 2025

    @lucen-ms
    Collaborator

    Saransh Malik (@saransh-malik) we are not going to fix this issue but feel free to issue a PR with fix.

  8. saransh-malik commented on Mar 20, 2025

    @saransh-malik

    Lukas Cenovsky (@lucen-ms) Okay sure thanks, will debug more I think I found the code in the original cli will try to fix and create a PR.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions