WICG / file-handling

API for web applications to handle files
Other
82 stars 15 forks source link

Detect PWA is default app for file handling #76

Closed NhutTran98 closed 1 year ago

NhutTran98 commented 1 year ago

I want to know if user already set my PWA app as default file handler for specific file type (ex: application/pdf). Does anyone has a solution or can we add another param into launchParams.

image
tomayac commented 1 year ago

Obtaining this information is currently not possible with the given API. What would be the use case for you to know this?

NhutTran98 commented 1 year ago

@tomayac we need to track how many people make our app as default app for file handler.

tomayac commented 1 year ago

Unfortunately "we need to track" is not a very convincing use case. Quite the opposite: someone having or not set your app to be a default file handler is another bit of entropy, so from a privacy perspective it's something that is not wanted—unless there is a very clear use case for why the benefits might outweigh the privacy issues.

NhutTran98 commented 1 year ago

@tomayac Thank you for your response