To integrate Revopush into your Expo project, you need to modify the native part of the application. This is done using Expo Configuration Plugins.
This plugin will automatically generate all the necessary changes to integrate Revopush OTA.
Full setup guide for Revopush with Expo.
Revopush SDK doesn't work with Expo Go because it requires native code changes.
| Expo SDK | Revopush SDK | Revopush Expo plugin |
|---|---|---|
| 52+ | 1.3.0 | 1.0.0 |
npx expo install @revopush/react-native-code-pushnpx expo install @revopush/expo-code-push-pluginExtend Plugin section in your Expo config with:
module.exports = ({ config }: { config: ExpoConfig }) => ({
...config,
plugins: [
["@revopush/expo-code-push-plugin", {
ios: {
CodePushDeploymentKey: 'YOUR_DEPLOYMENT_KEY',
CodePushServerUrl: 'https://api.revopush.org'
},
android: {
CodePushDeploymentKey: 'YOUR_DEPLOYMENT_KEY',
CodePushServerUrl: 'https://api.revopush.org'
}
}]
],
});Run prebuild command to generate native ios and android folders
npx expo prebuild --cleanIf you faced with ios target version error, add expo-build-properties plugin and set ios deploymentTarget to 15.5