fix notification permission handling, also covering the case of an app update...
fix notification permission handling, also covering the case of an app update for which the user has a provider already configured and only needs to give the lacking permissions
closes #9139 (closed)