I would like to send device location while the server trigger device online event short notification (sms notification) with location link like this https://www.google.com/maps/@67.9522,93.1001703,17z
I tried to use the code below but the link not sending coordinates but plain text as https://www.google.com/maps/@$position.latitude°,$position.longitude°,17z
my deviceOnline.vm for short notification(sms) looks as follows
#set($subject = "$device.name: online")
$device.name online at $dateTool.format("YYYY-MM-dd hh:mm a", $event.eventTime, $locale, $timezone) Loc: https://www.google.com/maps/@$position.latitude°,$position.longitude°,17z
how can I get coordinates to show in sms?
Status events don't have a position associated with them.
I would like to send device location while the server trigger device online event short notification (sms notification) with location link like this
https://www.google.com/maps/@67.9522,93.1001703,17z
I tried to use the code below but the link not sending coordinates but plain text as
https://www.google.com/maps/@$position.latitude°,$position.longitude°,17z
my deviceOnline.vm for short notification(sms) looks as follows
how can I get coordinates to show in sms?