![banner-react-native](https://private-user-images.githubusercontent.com/6370613/364509610-c38f52d8-792f-4b51-a423-f1c5dd9f996b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTQyNjIsIm5iZiI6MTczOTI1Mzk2MiwicGF0aCI6Ii82MzcwNjEzLzM2NDUwOTYxMC1jMzhmNTJkOC03OTJmLTRiNTEtYTQyMy1mMWM1ZGQ5Zjk5NmIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMDYwNjAyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODgyYTE0YmI0MmEyZTBmZGFlMDA1YTg3MWQ2YmE0Y2E1MjZiNjk4NjIzZWIzNTcxY2UyZjE5ZTgzNmU2MGRhYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.fP3CsB9ZE9ryQkgnLQyWytqw2W6la72BZl-qiDe7GJw)
Requirements | |
---|---|
Courier Account |
#
|
Minimum iOS SDK Version |
15.0
|
Minimum Android SDK Version |
23
|
npm install @trycourier/courier-react-native
yarn add @trycourier/courier-react-native
![Screenshot 2025-01-21 at 12 55 34 PM](https://private-user-images.githubusercontent.com/6370613/405383289-ee7722b2-ce6a-4dc4-8b30-94f42494d80a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTQyNjIsIm5iZiI6MTczOTI1Mzk2MiwicGF0aCI6Ii82MzcwNjEzLzQwNTM4MzI4OS1lZTc3MjJiMi1jZTZhLTRkYzQtOGIzMC05NGY0MjQ5NGQ4MGEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMDYwNjAyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTdkOWRlNGMzMzllNjhiZjNjY2QwMTk3NGYwMThhODQ3ZWU0NGIxMWQwNTcxNTgwNjBhNDNlMWQ1YmRkYjBjNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.twG6FiL8Lyag_3oR2YEsFIZ-x3YrPYEQHgaMY1gx1CM)
# Resolve react_native_pods.rb with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p'..
# Courier React Native requires iOS 15+
platform :ios, '15.0' // Add this line
prepare_react_native_project!
..
From the root of your React Native project run
cd ios && pod install
In your android/build.gradle
make sure your build and repository values are as follows
buildscript {
ext {
// Double check these values
buildToolsVersion = "33.0.0"
minSdkVersion = 23
compileSdkVersion = 33
targetSdkVersion = 33
..
}
repositories {
google()
mavenCentral()
maven { url 'https://www.jitpack.io' } // THIS LINE
}
..
}
Your app must support at least gradle 8.4
In your Android project, change your MainActivity
to extend the CourierReactNativeActivity
.
This allows the Courier SDK to manage the current user between app sessions.
import com.courierreactnative.CourierReactNativeActivity;
public class MainActivity extends CourierReactNativeActivity {
..
}
These are all the available features of the SDK.
Feature | Description | |
---|---|---|
1 |
Authentication
|
Manages user credentials between app sessions. Required if you would like to use Courier Inbox and Push Notifications .
|
2 |
Inbox
|
An in-app notification center you can use to notify your users. Comes with a prebuilt UI and also supports fully custom UIs. |
3 |
Push Notifications
|
Automatically manages push notification device tokens and gives convenient functions for handling push notification receiving and clicking. |
4 |
Preferences
|
Allow users to update which types of notifications they would like to receive. |
5 |
CourierClient
|
The base level API wrapper around the Courier endpoints. Useful if you have a highly customized user experience or codebase requirements. |
Starter projects using this SDK.
Project Link |
---|
Example
|
We are building the best SDKs for handling notifications! Have an idea or feedback about our SDKs? Here are some links to contact us: