diff --git a/packages/features/notifications/WebPushContext.tsx b/packages/features/notifications/WebPushContext.tsx index f271504290..292ef2ad28 100644 --- a/packages/features/notifications/WebPushContext.tsx +++ b/packages/features/notifications/WebPushContext.tsx @@ -71,7 +71,15 @@ export function WebPushProvider({ children }: ProviderProps) { } } catch (error) { console.error("Failed to subscribe:", error); - showToast("Failed to enable notifications", "error"); + if ( + error instanceof DOMException && + error.name === "InvalidAccessError" && + error.message.includes("applicationServerKey") + ) { + showToast("Please enable Google services for push messaging and try again", "error"); + } else { + showToast("Failed to enable notifications", "error"); + } } finally { setIsLoading(false); }