Inbox, Push Notifications, and Preferences for React Native
npm install @trycourier/courier-react-native
| Requirements | |
|---|---|
| Courier Account | Sign Up |
| Minimum iOS SDK Version | 15.0 |
| Minimum Android SDK Version | 23 |
npm``sh`
npm install @trycourier/courier-react-native
`sh`
yarn add @trycourier/courier-react-native
`shResolve react_native_pods.rb with node to allow for hoisting
require Pod::Executable.execute_command('node', '-p'..
..
`
From the root of your React Native project run
`sh`
cd ios && pod install
In your android/build.gradle make sure your build and repository values are as follows
`gradle
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
This allows the Courier SDK to manage the current user between app sessions.
Java
`java
import com.courierreactnative.CourierReactNativeActivity;
public class MainActivity extends CourierReactNativeActivity {
..
}
`
Kotlin
`kotlin
import com.courierreactnative.CourierReactNativeActivity;
class MainActivity : 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. |
If you are using Expo, you should check out the [Expo Docs for all the details.
Starter projects using this SDK.
| Project Link |
|---|
Example |
We want to make this the best SDK for managing notifications! Have an idea or feedback about our SDKs? Let us know!