in this code please add the log.debug and lets check the ST ide log output of it please. before posting the log output mask any personal info by replacing each character with a X or something.
if (location.contactBookEnabled) {
log.debug "msg: $msg ^ recipients: $recipients ^ options: $options"
sendNotificationToContacts(msg, recipients, options)
} else {