mardi 1 décembre 2020

Avoiding PWA to reload when using Web Share Target API

I'm working on a PWA that plays music. It accepts shared URLs from other android apps via Web Share Target API.

The problem : Whenever something is shared via the API (which uses GET request)I my PWA is reloded (as expected). And the already playing Music stops because of that.

Is there any way that page doesn't reload ?

Currently fetching shared params with this code.

const parsedUrl = new URL(window.location);

My PWA is a Single Page application

Thanks




Aucun commentaire:

Enregistrer un commentaire