puter.notifications.hasPermission()Whether the user lets your app send push notifications. It never prompts, so use it to decide whether to show your own "turn on notifications" button, which calls requestPermission().
The answer is about the app making the call. Called from an account session with no app, such as Node.js with an account token, it's always true.
puter.notifications.hasPermission()
None.
A Promise that resolves to true or false.
Only offer the button when it's needed
if ( ! await puter.notifications.hasPermission() ) {
showEnablePushesButton();
}