I think we're using `app_domain` also for packaged apps and it'll look something like `app://domain.com`. Will this support that too? Or should we add a `not is_packaged` check here?