There are a couple things happening.
First, let's talk about the EASIEST way to make the notification go away:
Quit the application -- in this case, snap-store (a.k.a. Ubuntu Software). Since snap-store auto-starts upon login, you might not recall that you have it open...but you do.
Closing the window is not enough to terminate the application.
One way: On the command line, run snap-store --quit
Another way: Open Ubuntu Software, look at the top bar, find "Ubuntu Software" on the left side of the top bar. Click it, and select "Quit".
Run sudo snap refresh
. Let the command complete.
sudo snap refresh <application-name>
.kill <pid>
to remove the block.sudo snap refresh
again. This time it should work.It's now safe to re-launch your application.
Second, let's talk about WHY it's happening:
Snapd detects when a new version is available. If the application is currently running, snapd will inhibit updating that application for up to 14 days.
With most applications, this works fine. You Quit out of an application, a few hours later snapd updates the application (it checks several times each day). and the next time you open the application you don't even notice that it's been updated. Great!
But some applications are open for a long time that runs up against that 14-day window. Like web browsers on laptops that get closed/suspended instead of quit/restarted. Unfortunately, when the 14-day window expires, snapd will kill the application in order to implement the upgrade. To the user, this looks like Firefox crashed unexpectedly, losing whatever they were doing.
Third, let's talk about why you are suddenly getting these notifications NOW.
The Snap developers were dissatisfied with those two choices (kill the application to force the upgrade -or- disable upgrades entirely), so they created a better path: Remind the user to Quit the application when convenient. That is the notification you are seeing. It's new (turned on by default) in Ubuntu 22.04.
Finally, there's one obvious question remaining: Why isn't this automatic? or perhaps Why doesn't snapd download the update before nagging you?
Well, that's a work in progress. The snapd developers welcome code contributions to help make that happen safely. Snapd is Open Source.