Determine if a device is currently subscribed to push notifications.
Pushbase SDK provides a function to determine if the device is already subscribed or not. This is helpful to decide if your app can request to subscribe or not.
Copy
// Import functionimport { isSubscribedToNotifications } from "@pushbase/sdk";// Later in your codeconst isSubscribed = await isSubscribedToNotifications();
Having trouble setting up or configuring the SDK? Our support team is here to
help — feel free to reach
out