Skip to main content

Configuration

Here we will setup NextPush for your project.

Existing App Center Users

If you are an existing App Center user, you can add this lines to your project.

For Android

Add this line to your res/values/strings.xml file.

<string moduleConfig="true" name="CodePushServerUrl">https://api.nextpush.center</string>

For iOS

Add this line to your Info.plist file.

<key>CodePushServerURL</key>
<string>https://api.nextpush.center</string>

Release Command

That's it. You can use the release command similar to appcenter commands.

Use nextpush instead of appcenter codepush

Install NextPush CLI

npm install -g nextpush-cli

Release Command

nextpush release-react -a companyName/AwesomeApp -d Production

New Users

If you are a new user, follow the steps below to configure your project.

1: Create an account on NextPush

Go to NextPush and create an account.

2: Create a new App

Go to the dashboard and create a new app.

3: React Native Configuration

Setup react-native-codepush for your project. Follow the React Native CodePush Documentation for more information.

4: NextPush Configuration

Add CodePushServerUrl to your project.

For Android

Add this line to your res/values/strings.xml file.

<string moduleConfig="true" name="CodePushServerUrl">https://api.nextpush.center</string>

For iOS

Add this line to your Info.plist file.

<key>CodePushServerURL</key>
<string>https://api.nextpush.center</string>

Install NextPush CLI

npm install -g nextpush-cli

5: Release Command

Use nextpush instead of appcenter codepush

nextpush release-react -a companyName/AwesomeApp -d Production

That's it. You can use the release command similar to appcenter commands.