Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Add binaryUpdateCallback to checkForUpdate & sync methods #669

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elgerlambert
Copy link

This PR resolves #260.

As per #260 (comment) this PR adds an additional callback to codePush.sync & checkForUpdate methods in a similar vein as react-native-code-push.

All the changes are purely additive, so no breaking changes. This does mean the syncCallback is still called with status UP_TO_DATE (directly after the newly added binaryUpdateCallback is called).

The binaryUpdateCallback is called with a NativeUpdateNotification object. Unfortunately this object doesn't contain a lot of useful info (only the binary target as appVersion). Other RemotePackage properties, such as isMandatory for example, are missing. To change/improve this, would require making changes to the (parent) code-push repo, specifically around this line. This may be considered as further action.

@ghost
Copy link

ghost commented Mar 3, 2021

CLA assistant check
All CLA requirements met.

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

Successfully merging this pull request may close these issues.

CheckForUpdate and determine if there is a new binary version
1 participant