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.

Image assets switched around after codepush update #2605

@l3utterfly

Description

@l3utterfly

Some users using our app reports (and sent screenshots) where the image assets are switched around after installing a codepush update.

For example, I have a list of characters each with an icon, that's loaded via require('../assets/images/icon1.png'), require('../assets/images/icon2.png') etc.

After updating via CodePush, character1 has icon2, and character2 has icon1.

This issue seems to happen when there is a major version change in my app. For example:

  1. Upload version v1.4.0 to Google play with CodePush bundle
  2. Update new codepush version targeting v1.4.0 using AppCenter
  3. Release version v1.5.0 on Google Play
  4. Release new codepush bundle targeting v1.5.0 on AppCenter
  5. User updates via Google Play, then codepush downloads new bundle automatically

User sees images scrambled.

What could be the issue here? Is this a problem with my setup or a bug in how assets are bundled?

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