Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to detect the URL data from a Brave Browser PWA? #322

Open
usizu opened this issue Feb 3, 2024 · 2 comments
Open

How to detect the URL data from a Brave Browser PWA? #322

usizu opened this issue Feb 3, 2024 · 2 comments

Comments

@usizu
Copy link

usizu commented Feb 3, 2024

Any ideas, suggestions or other feedback
I've installed a Progressive Web App through Brave Browser to my desktop (email client Proton Mail) and finicky doesn't detect it — even when adding the generalised URL logging from this page: https://github.com/johnste/finicky/wiki/Troubleshooting-&-Tips#i-want-to-see-all-incoming-parameters-to-the-url-handling-functions

The logging works for the same PWA installed from Safari, but not the one from Brave. Nothing shows up at all in the finicky console.

Is there any way to detect these URLs? Otherwise they always default to opening in Brave Browser, (they are ignored by finicky entirely, which has the default set to Safari).

@usizu
Copy link
Author

usizu commented Feb 3, 2024

(Given that it works with the PWA generated by Safari but not the one generated by Brave, my reason for using Brave's instead is just that when opened simultaneously, Brave's PWA launches faster)

@usizu
Copy link
Author

usizu commented Feb 3, 2024

Getting the bundleId with osascript -e 'id of app "ProtonMail"' (which is com.brave.Browser.app.jnpecgipniidlgicjocehkhajgdnjekh) and then doing

{
  // Open any link clicked in Proton Mail PWA
  match: ({ opener }) =>
    opener.bundleId === "com.brave.Browser.app.jnpecgipniidlgicjocehkhajgdnjekh",
  browser: "Safari"
},

also doesn't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant