Skip to content

Troubleshooting & Tips

Туляганов Тимур Ганиевич edited this page Jun 18, 2020 · 10 revisions

I want to use the sourceBundleidentifier option, but I don't know what bundle id to listen to.

You can add a matcher (save it as the first one to be sure) that will log out the source bundle identifier as a notification message or a log message. Example:

module.exports = {
  // ...
  handlers: [ {
    match: ({ sourceBundleIdentifier }) => {
      finicky.notify(sourceBundleIdentifier);
      finicky.log(sourceBundleIdentifier);
    },
    browser: "Google Chrome",
  }]
}

You can also directly query the bundle identifier from an application using the mdls(1) command:

Mac:~ me$ mdls /Applications/iPhoto.app | grep kMDItemCF
kMDItemCFBundleIdentifier           = "com.apple.iPhoto"

(credit to Mike Bradshaw)

I want to see all incoming parameters to the url handling functions

Add a url rewrite handler like this and it will output the full object to the finicky console.

{
  match(all) {
    finicky.log(JSON.stringify(all, null, 2));
    return false;
  },
  url: ({ url }) => url,
}

I want to open chime links in chime app

Initial URL: https://chime.aws/00000

Target URL: chime://meeting?pin=00000

Current configuration (not working):

  defaultBrowser: "Google Chrome",
  handlers: [
        {
           match: "chime.aws/*",
           url: {
                host: "meeting?pin=",
                protocol: "chime"
                },
           browser: "Amazon Chime"
        }
  ]
};

Problem with initial slash passed as parameter before the numeric ID, need to remove the slash.

2020-06-18 11:14:42 - Opens browser: Amazon Chime, url: chime://meeting?pin=/00000

Clone this wiki locally