Push Notifications
Integrate your app with Referd push notifications and interactive in-app messaging.
Last updated
Integrate your app with Referd push notifications and interactive in-app messaging.
Last updated
Referd uses Firebase to deliver maximum experience in your app. This includes push notifications, interactive in-app messaging.
Before you start, you must configure your Firebase on your Referd account. Follow the steps in Configure your Firebase account on Referd for mobile push notifications article from our Help Center related to push notifications.
For notifications handling, add this code to the onNotification
function in your app:
Import InAppNotification
InAppNotification takes the following properties:
notification
Required
Pass the notification data received from the server
Notification
You can use it in different two ways: one is by adding it directly underneath the main app like shown.
Another approach is to have a separate component which handles the InAppNotification component and pass to it the data directly.
After that, add it underneath your main app component as follows.
Your users can now receive push notifications from Referd.