Initialize the SDK with the indigitall.init () method to start receiving push notifications. This initialization must be done within the index.html of your project.
import {
Push as Indigitall,
} from 'indigitall-react-native-plugin';
Indigitall.init({
appKey: "<YOUR_APP_KEY>",
senderId: "<YOUR_SENDER_ID>"
}, (device: {pushToken: any; deviceId: any}) => {
console.log('evice init:', device);
}, (device: any) => {
console.log('device onnew: ', device);
},(error: any) => {
console.log('error app init', error);
});
- YOUR_APP_KEY is an alphanumeric text string. You can find it in the administration console within the Configuration section in the Projects tab
- YOUR_SENDER_ID is a numeric string. You can find it in the Firebase console , inside the project, in the configuration, tab Cloud messaging.