Search code examples
google-chromegoogle-chrome-extension

Moving optional_permission to required permission in Chrome extension


I currently have notifications added as an optional_permission for my Chrome extension.

If I change that to a required permission, what will happen to the users that have already accepted notifications? Will they still have the extension disabled for them? Will it be a seamless transition?

Related Links: extension permissions, extension permission warnings


Solution

  • Judging by the source code there won't be a warning for users that have already accepted notifications because the update routine accounts for these runtime-granted permissions explicitly.

    But if you add several permissions of which some aren't yet granted, the extension will be disabled.