I checked the plugin in version 2.3-RC1 (I do not know which version you are using).
Indeed, there is a startReadFromGps method:
startReadFromGps: function(deviceNumber) { this.plugin.StartReadFromGps( deviceNumber ); },
Therefore, it uses getGpsXml . I assume that it uses the specified file name that is being read, and the method returns the contents of the file. My first thought is to change the file name - this is possible with
_setWriteFilename: function(filename) { this.plugin.FileName = filename; },
But _setWriteFilename is a private method. However caused
startWriteToGps: function(gpsXml, filename, deviceNumber)
and
startWriteFitnessData: function(tcdXml, deviceNumber, filename, dataTypeName)
Since now I will check whether a call to these methods with the specified filename override the file name value, and a further call to startReadFromGps will use the new filename .
I cannot verify this, I have not used this library, but you can take a picture.
source share