transistorsoft/nativescript-background-geolocation-lt

UUID not returning a string in locationTemplate

Opened this issue · 9 comments

Your Environment

  • Plugin version: 1.91
  • Platform: iOS
  • OS version: 12.1.4
  • Device manufacturer / model: iPhone X and 5C
  • Nativescript version (tns info):
  • Plugin config

Expected Behavior

UUID returned from <%=uuid%>

Actual Behavior

Empty string returned.

Steps to Reproduce

locationTemplate: '[{"lat":<%=latitude%>,"lng":<%=longitude%>,"heading": <%=heading%>,"speed":<%=speed%>,"accuracy":<%=accuracy%>,"timestamp":"<%=timestamp%>","event":"<%=event%>","activity_type":"<%=activity.type%>","activity_confidence":<%=activity.confidence%>,"battery_level":<%=battery.level%>,"battery_charging":"<%=battery.is_charging%>","is_moving":"<%=is_moving%>","UUID":"<%=uuid%>"}]',

Context

Debug logs

Once again, you are responsible for you own quoting. If it’s a string ”<%= uuid %>”

This is so that one can compose their own compound strings.

Hi Chris, it is quoted, please seem my locationTemplate "UUID":"<%=uuid%>"

My mistake. What is this version “1.91”, you’ve specified? That doesn’t correspond to any known version,

Version 1.9.1 sorry missed a dot.

2.15.1 is latest stable.

3.0.0 is in beta. Upgrade plugin accordingly.

Oops, sorry, I see this is for NativeScript.

Ignore previous message about versions. Those pertained to Cordova / React Native versions.

I will look into this when I return from vacation in on 13th

OK no problem, thanks for the feedback

Hi, Any news on this please.