Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get version from JS on initial install #42

Open
fermuch opened this issue Jun 27, 2016 · 1 comment
Open

Can't get version from JS on initial install #42

fermuch opened this issue Jun 27, 2016 · 1 comment

Comments

@fermuch
Copy link

fermuch commented Jun 27, 2016

Steps to reproduce:

  • Clone the repo
  • Execute the Example in a device or an emulator (Android)
  • Version is undefined.

After updating the app for the first time, the correct version is displayed.

Screenshot:

@maarekj
Copy link

maarekj commented Sep 1, 2016

Change the body of function getJSBundleFile() in class "MainApplication" with the following code:

    @Nullable
    @Override
    protected String getJSBundleFile() {
        ReactNativeAutoUpdater updater = ReactNativeAutoUpdater.getInstance(getApplicationContext());
        updater.setMetadataAssetName("metadata.android.json");
        return updater.getLatestJSCodeLocation();
    }

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

No branches or pull requests

2 participants