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,
}
Clone this wiki locally