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.

[Android] codePushOnBinaryVersionMismatch/handleBinaryVersionMismatchCallback This method cannot be triggered #1023

@TrustDec

Description

@TrustDec

Hi! @max-mironov

The cell phone comes with version 1.0.1, and the latest is 1.0.2, but it doesn't perform the hook function

react native :0.48.4
RNCP: 5.1.1-beta

see doc source

CodePushUpdata = () => {
        CodePush.sync({
            updateDialog: {
                appendReleaseDescription: true,
                descriptionPrefix:'update content:\n',
                title:'title',
                mandatoryUpdateMessage:'',
                mandatoryContinueButtonLabel:'update',
            },
            mandatoryInstallMode:CodePush.InstallMode.IMMEDIATE,
            //deploymentKey: CODE_PUSH_PRODUCTION_KEY,
            },
            (syncStatus)=> this.codePushStatusDidChange(syncStatus),
            (progress)=>{
                Toast.loading(`${progress.receivedBytes} of ${progress.totalBytes} bytes received`)
                //this.codePushDownloadDidProgress.bind(this)
            },
            (update)=> this.handleBinaryVersionMismatchCallback(update)
        );
    }

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions