The Notiflow In-App SDK allows seamless integration of notifications within your web application. Easily display notifications using our React-based SDK.
$ npm i @foxsenseinnovations/notiflow-in-app-sdk-react
$ yarn i @foxsenseinnovations/notiflow-in-app-sdk-react
Here is a quick example of how to use the NotiflowInAppNotifications
component in your React application:
import React from 'react';
import { NotiflowInAppNotifications } from '@foxsenseinnovations/notiflow-in-app-sdk-react';
function App() {
return (
<div>
<h1>Notiflow In-App Notifications Example</h1>
<NotiflowInAppNotifications
clientId="<YOUR-CLIENT-ID>"
email="user@example.com"
phoneNumber="+1234567890"
/>
</div>
);
}
export default App;
The NotiflowInAppNotifications
component takes the following props:
Parameter | Type | Required | Description |
---|---|---|---|
clientId |
string |
Yes | The unique identifier for your notiflow account.This is mandatory to authenticate your app. |
email |
string |
No | (Optional) The email address of the user for whom the notifications are to be fetched. Either email or phoneNumber must be provided. |
phoneNumber |
string |
No | (Optional) The phone number of the user for whom the notifications are to be fetched. Either phoneNumber or email must be provided. |