Vanilla Integration
Installation
yarn add @batch.com/react-native-pluginnpm install @batch.com/react-native-pluginAndroid extra steps
Starting the SDK
import com.batch.batch_rn.RNBatchModule
class MainApplication : Application(), ReactApplication {
// ...
override fun onCreate() {
super.onCreate()
// ...
// Start Batch Plugin
RNBatchModule.initialize(this)
}
}import com.batch.batch_rn.RNBatchModule
public class MainApplication extends Application implements ReactApplication {
// ...
@Override
public void onCreate() {
super.onCreate();
// ...
// Start Batch Plugin
RNBatchModule.initialize(this);
}
}Configuring onNewIntent
Install dependencies
Firebase config
Small push notification icon
iOS extra steps
Install dependencies
Start the SDK
Enable Push Capabilities
Setting up your APIKey
Enable push notifications
Last updated

