Hello. I have multiple account. I want, that my app understand, what account get notification. In openhabcloud server i found this parameters
exports.sendNotification = function(registrationIds, notification) {
var data = {
message: notification.message,
severity: notification.severity,
icon: notification.icon,
persistedId: notification._id,
timestamp: notification.created.getTime()
};
sendNotificationWithData(registrationIds, data);
};
Application get this parameters.
return CloudNotification(
getString("_id"),
getString("message"),
created,
optStringOrNull("icon").toOH2IconResource(),
optStringOrNull("severity"))
}