Gettings started
For push notification support, we provide anexpo-config plugin that automatically configures the necessary settings for seamless integration with the Userpilot SDK.
You can fetch the latest version from here.
Prerequisites
- Ensure the Userpilot React Native Module is installed in your app and the SDK is initialized:
- It is recommended to have configured your Android and iOS push settings in Userpilot Settings page.
- Refer to Android Guide and iOS Guide to get needed files and settings.
- Copy your Firebase configuration file into your project and set the path to the file in your
app.jsonfile, in theandroid.googleServicesFile(doc) property:
Usage
- Install the Userpilot expo config plugin
- Add
@userpilot/expo-configto the plugin list in yourapp.jsonfile:
Make sure to set the
scheme key in your plugin configuration.
- Test locally with a new development or EAS build:
SDK callbacks
To handle deep link triggers from push notifications, you can listen to SDK events as shown below.For more information, refer to the Userpilot React Native SDK.