![]() ![]() 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 In MyTracks, copy the track to SD card as a KML file Plug the phone in via USB and mount the SD cards filesystem Copy the KML file from the kml directory. ![]() What PWA desktop features are demonstrated Tracks are only stored locally (using IndexedDB). The color of each track can be changed independently. 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.Once enrolled, learning activities appear in the employee's development plan. 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 The MyTrack dashboard provides employees with access to the following features: Access the 'Learning library' from the 'My community' drop down menu in the primary navigation bar to explore and register for available learning activities. This is a sample application that demonstrates various PWA features.
0 Comments
Leave a Reply. |