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
Install the CodePush SDK. The original react-native-code-push is no longer maintained and does not support the New Architecture, so use the community-maintained drop-in replacement:
npm install @code-push-next/react-native-code-push
cd ios && pod install
Follow the package README for the native setup. See React Native New Architecture for details and migration notes.
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.