Hi all, when we use the Client constructor we have to enclose it in a try/catch statement, so it would be great if we could ask for the beams support before creating the instance, something like this:
import * as PusherPushNotifications from '@pusher/push-notifications-web';
if (PusherPushNotifications.isSupported()) {
const beamsClient = new PusherPushNotifications.Client(...)
...
}
in that way, we can avoid using the try/catch statement, and we could use it in others places to take different decisions.
Hi all, when we use the
Client
constructor we have to enclose it in a try/catch statement, so it would be great if we could ask for the beams support before creating the instance, something like this:in that way, we can avoid using the try/catch statement, and we could use it in others places to take different decisions.
greetings!