walletnotify is really useful because you can respond as soon as a transaction is broadcast or confirmed, but it only works for addresses in the bitcoind wallet. If you import an address from an xpub, for example, walletnotify does not seem to trigger.
Can walletnotify be extended to work with imported addresses?