-
Notifications
You must be signed in to change notification settings - Fork 632
Register in Launch Services as a viewer for the feed URL scheme #532
Comments
Thank you @einkoro, we'll put this on our backlog. Are you up for a coding challenge by chance? you can create a PR for this feature. |
I'm not terribly familiar with electron but the documentation for registering URL schemes or extending Info.plist seems to be rather lacking and mostly dead wiki links from GH issues circa ~2016. Are you familiar at all with how extendInfo works in electron builder? About the only example I could find and virtually zero documentation was:
With no mention if there is support for arrays or dictionaries or just passing in a plist like electron packager. Registering as a viewer for the feed URL scheme would require the following in Info.plist as a starting point:
|
After more digging if I'm following correctly this looks like it:
Which would be in package.json around here: https://github.com/GetStream/Winds/blob/v2.3.3/app/package.json#L92 And then register an open-url event handler on the app object and handle it there. This seems pretty bare but appears to be the relevant bits: Probably something like:
In here: https://github.com/GetStream/Winds/blob/v2.3.3/app/public/electron.js#L191 Is the entire process to setup a dev env in the readme required just to edit and test a build of the mac app? Or can I get away with something more minimal and quicker? |
@einkoro you can set up the front-end application and point it to the winds production API, check the details on the README, Also for more detailed guide: |
Closing this out due to inactivity. |
Prerequisites
Description
Winds currently does not appear to register with launch services as a viewer for the feed URL scheme. This currently prevents detecting Winds as an application supporting feeds or launching Winds to subscribe to a feed via NSWorkspace.
Steps to Reproduce
1a. Using SwiftDefaultApps prefpane navigate to the URL schemes tab and view the feed entries
OR
1b. From the terminal run the following:
Expected behavior: Winds should be listed under feed
Actual behavior: Winds is not listed under feed
Reproduces how often: 100%
Versions
Winds 2.1.49 (via MAS)
MacOS 10.14 (18A391)
Additional Information
For reference I use the following to detect applications registered as feed viewers:
And to launch applications registered as viewers via the URL scheme:
The text was updated successfully, but these errors were encountered: