Get the information from a notification
To get the information for a particular notification, you have to make the following call with the sendingId of each notification:
IndigitallFlutterPlugin.getInfoFromNotificationWithSendingId(
{"YOUR_AUTH_CONFIG_MAP_IF_NEED"},
{sendingId:SENDING_ID},
(inboxNotification) => {
//DO SOMETHING
},(error) => {
//LOG IndigitallErrorModel
});
Edit the status of one or more notifications
To edit the status of one or more notifications at the same time, it is done with the following method in which you must indicate the sendingIds of the notifications to edit and the status to which you want to change:
//one notification modify
IndigitallFlutterPlugin.modifyStatusFromNotificationWithSendingId({"YOUR_AUTH_CONFIG_MAP_IF_NEED"}, {
IndigitallParams.PARAM_SENDING_ID:SENDING_ID,
IndigitallParams.PARAM_STATUS:STATUS
}, (inboxNotification) => {
//DO SOMETHING
},(error) => {
//LOG IndigitallErrorModel
});
//massive modify
IndigitallFlutterPlugin.massiveEditNotificationsWithSendingIdsList({"YOUR_AUTH_CONFIG_MAP_IF_NEED"}, {
IndigitallParams.PARAM_SENDING_ID_LIST:[SENDING_IDS],
IndigitallParams.PARAM_STATUS:STATUS
}, () => {
//DO SOMETHING
},(error) => {
//LOG IndigitallErrorModel
});