puter.notifications.listDevices() Lists the browsers and devices that receive the user's push notifications, newest first, up to 50.
forbidden.The list includes the browsers registered for Puter itself and for each app.
puter.notifications.listDevices()
None.
A Promise that resolves to an array of devices:
uid (String): Pass it to removeDevice().platform (String): 'webpush' for a browser subscribed with Web Push. A 'web' device is an older browser registration that gets no pushes and is removed once it goes unseen.label (String | null)userAgent (String | null): The browser's user agent when it was registered.createdAt (Number): Unix seconds.lastSeenAt (Number): Unix seconds. When a push last reached it, or a page last renewed it.current (Boolean): Registered from the session making the call.The push token itself is never returned.
The promise rejects with push_unavailable if this deployment has no push notification service, as on most self-hosted servers.