Only throw errors for configuration errors, not compatibility errors. If there is an incompatiblity error (either the browser does not support web push or something, or safari credentials don't exist for the instance) return false from isSupportedBrowser() and expose details in client.error
beamsClient.isSupportedBrowser().then((result) => {
if (!result) {
console.log(`Beams not supported: ${beamsClient.error}`);
return
}
renderPushNotificationsButton(beamsClient);
});
Only throw errors for configuration errors, not compatibility errors. If there is an incompatiblity error (either the browser does not support web push or something, or safari credentials don't exist for the instance) return
false
fromisSupportedBrowser()
and expose details inclient.error