Improved support for background scanning and notifications