Hybrid implementation for GPXexport (#9) using the capacitor FileSystem plugin when needed. The export is done in the Documents/Download folder and there is no notification (yet).

This commit is contained in:
vdv committed 2022-10-02 16:37:06 +02:00
1 parent cb4a257003
commit ca28d767c0
5 files changed
+304 -67

No files matched your search

+2 -1
View File
@@ -172,12 +172,13 @@ export const deleteCurrent = async (db: any) => {
};
export const getGpx = async (db: any, gpxId: string) => {
console.log(`getGpx(db, "${gpxId}")`);
var gpxResult = await db.get(gpxId);
var gpx = gpxResult.gpx;
var trkptResults = await db.find({
selector: {
type: 'trkpt',
gpx: gpx._id,
gpx: gpxId,
},
});
var trkpts = trkptResults.docs;