When sending push via onesignal to a react-native app, if I include data field in notification body it takes almost 26 seconds to reach the device but without data field it reaches within 1-2 seconds only. What can be the cause? I tried sending from node, python and Go backends.
This is the body I'm sending,
// Takes 1-2 seconds to reach
const notificationBody: any = {
headings: { en: "Heading" },
contents: { en: "Message"},
include_player_ids: playerIds,
priority: 10,
};
// Takes 26-30 seconds to reach
const notificationBodyWithData: any = {
headings: { en: "Heading with data" },
contents: { en: "Message"},
content_available: true,
data: data || {},
include_player_ids: playerIds,
priority: 10,
};
I tried searching in the documentation of onesignal as well as in git issues, but couldn't find anything related to this.