sendNotification: parameter processing & notification type