diff --git a/frontend/src/store.rs b/frontend/src/store.rs index bf831a9..174fa92 100644 --- a/frontend/src/store.rs +++ b/frontend/src/store.rs @@ -527,6 +527,7 @@ pub async fn subscribe_to_push_notifications() { } /// Helper to convert URL-safe base64 string to Uint8Array +/// Uses JavaScript to properly decode binary data (avoids UTF-8 encoding issues) fn url_base64_to_uint8array(base64_string: &str) -> Result { // Add padding let padding = (4 - (base64_string.len() % 4)) % 4; @@ -536,15 +537,24 @@ fn url_base64_to_uint8array(base64_string: &str) -> Result()?; Ok(array) }