My payload is similar to the below mentioned one.
{
"data": {
"title": "You have a notification",
"body": "The body of the notification"
}
}
Since we have callbacks for the foreground and background states, the plugin is working as expected in those cases. However, it does not work when the app is in the terminated state.