
The reason we use a sub-directory locally is because the app is hosted live on a GitHub page, so it uses a sub-directory there too ( ). Start an HTTP server in the root directory of this repo, e.g.This is why any action outside of the app that ends up launching it will start a new instance instead of reusing an already opened one. To try this, go to edge://apps, right-click on the application and select "Start app when you sign in".įor now, there isn't a way for desktop PWAs to control how apps are launched (there is work happening on this topic). This feature is not demonstrated by the app itself.When a GPX files is opened, the app handles it and imports the GPS data as a new track in its local storage. This registers the app as a handler of GPX files.This adds the "show all tracks" and "hide all tracks" tasks to the app contextual menu.This allows the app to handle the geo protocol by opening up when a URL such as geo:42.37974557295966,8.945581957388745 is navigated to.This allows the app, once installed, to use the OS title bar to display a logo and a button to import new tracks.What PWA desktop features are demonstrated If your Markups do not show up after importing, refresh your web browser. Click 'Save to My Content.' The uploaded file is listed in the My Content Menu along with all of your other Markups. Click 'Select from computer' and use your computer's file explorer to select a KML or GPX file. Tracks are only stored locally (using IndexedDB). Click 'Import' at the bottom of the My Content Menu. For watches without GPS, you can see your current distance and time, and control the recording of your tracks from your wrist. The color of each track can be changed independently. For watches with GPS, My Tracks can perform GPS recording of tracks without a phone and sync tracks to the phone. Tracks can also be exported as GPX files again, or deleted. Tracks are displayed in a list on the side and can be toggled on the map. Tracks can be imported by either opening a GPX file from the OS, or by using the "import" button at the top. The application shows a map and gives users the ability to import GPS track data (from GPX files). The app will work on any other browser and without these flags, you just won't have access to all of the demonstrated features. #enable-desktop-pwas-window-controls-overlay.Most of the PWA features demonstrated here are still experimental, so before using the app, you will need to use a browser that support the features: Edge or Chrome at this point, and then enable some flags in about://flags This is a sample application that demonstrates various PWA features.
