This is an old revision of the document!
Web developers often have visitors viewing their site in their default web browser (Firefox, Safari, etc.) but may wish to redirect a link to open inside Nightingale. For instance, music blogs or stores may wish to have users view their site within Nightingale to utilise Webpage API features, or Nightingale's media-scraping features. In order to support this, Nightingale 1.8.1 and higher will register a nightingale:// protocol handler with the operating system to enable webpages to redirect links to open within Nightingale. The exact format looks like:
Of course, if the user doesn't have Nightingale installed, then no protocol handler will have been registered. To remedy this, the Nightingale website will have a Web Launch Redirection service to facilitate Nightingale detection. The Web Redirector will attempt to detect whether the user has Nightingale installed (by use of a cookie installed from the Nightingale download page, or by sniffing the user-agent to see if the user is already within Nightingale ), and forward the user through (depending on the command), or will prompt the user to download and install Nightingale.
Any web developer can utilise this service freely.
While the list of commands is expected to grow in the future, as of this article's writing (1.1 release-time), the only command implemented so far is open.
Launch Nightingale and open a tab with the url contained in the url query string parameter. The new tab should have the focus.
The following example would cause a new tab to open in Nightingale, loading http://libre.fm/
Of course, the nightingale:// protocol handler is only effective if Nightingale is installed. To facilitate this, Nightingale's website provides a Web Launch Redirector at http://launch.getnightingale.com free for any web developer to use. You can construct a link to look like:
The URL to redirect to should be a nightingale:// URL in the form of one of the above valid commands. For instance, to provide a link to the Web Redirector to launch a new tab open to http://libre.fm, the link should look like:
If the user doesn't have Nightingale installed, then they will be prompted to download and install Nightingale by the launch.getnightingale.com site.