microsoft / react-native-code-push

React Native module for CodePush
http://appcenter.ms
Other
8.98k stars 1.47k forks source link

com.microsoft.codepush.react.CodePushInvalidUpdateException: The update could not be verified because it was not signed by a trusted party. #2452

Closed shushilanandtrika closed 1 year ago

shushilanandtrika commented 1 year ago

We are getting the following error only in android and only in some devices. We have noticed this error only appear in android version 10 and below. Everything works great with the code push in our app with android 10 and higher. This error is also only there in app bundle when we run gradlew bundleRelease.

com.microsoft.codepush.react.CodePushInvalidUpdateException: The update could not be verified because it was not signed by a trusted party.

When we run codePush.sync we get codePush.SyncStatus.UP_TO_DATE instead of getting the latest version from codepush.

Steps to Reproduce

  1. Setup Codepush with CodeSigning in react-native
  2. Everything works well in appcenter builds.
  3. Run gradlew bundleRelease release the app, code push doesn't work.

Expected Behavior

App should update on all devices running android 5 and above.

Actual Behavior

Code push doesn't work on android 10 and below

[CodePush] Expected hash:, actual hash:
[CodePush] The update contents succeeded the data integrity check.
[CodePush] Verifying signature for folder path: /data/user/0/com.<ourappname>/files/CodePush/
[CodePush] Attempt to read from field 'java.util.Map java.util.Collections$UnmodifiableMap.m' on a null object reference
[CodePush] [Ljava.lang.StackTraceElement;@60561fa
[CodePush] Exception
com.microsoft.codepush.react.CodePushInvalidUpdateException: The update could not be verified because it was not signed by a trusted party.

Environment

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

microsoft-github-policy-service[bot] commented 1 year ago

This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.

microsoft-github-policy-service[bot] commented 1 year ago

This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.