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.

Code Push Rollbacks every update on real device in Android and iOS #2487

@Aggroid

Description

@Aggroid

Steps to Reproduce

  1. Create new code push update
  2. Install the app
  3. Wait for the update

Expected Behavior

The update to be successfull

Actual Behavior

What actually happens?

 This is the logs from local build as you can see I got :

[CodePush] Downloading package.
› Sending
" CodePushDownloadProgress
with no listeners registered.
instrument. is: 110
LogBox. is: 173
[CodePush] Installing update.
[CodePush1 Update is installed and will be run when the app next resumes


![image](https://user-images.githubusercontent.com/6987998/231162575-e1931484-96f1-4f10-b6fd-44c8962649e6.png)

This is happening on local build. The update is still not presented but there is no rollback. While on real device I do get rollbacks only.

Environment

  • react-native-code-push version: 7.0.0
  • react-native version: 0.68.2
  • Does this reproduce on a debug build or release build? Release
  • Does this reproduce on a simulator, or only on a physical device? Real Device

This is my Implementation :

So in my App.js I do have component like that :

The above component looks like that :

import codePush from 'react-native-code-push';

export class CodepushUpdater extends Component {
componentDidMount() {
codePush.notifyAppReady();
}

render() {
    return null; 

}
const codePushOptions = { installMode: codePush.InstallMode.ON_NEXT_RESUME,
checkFrequency: codePush.CheckFrequency.ON_APP_RESUME };

export default codePush(codePushOptions)(CodepushUpdater);

When i go to the app center I see >

Screenshot 2023-04-11 at 15 33 53

I did tried every single implementation. The ones from the examples and everything and no luck at all. Can you guys please give me a hand with that ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions