88} from " $env/static/public" ;
99import { Hero } from " $lib/fragments" ;
1010import { GlobalState } from " $lib/global" ;
11- import NotificationService from " $lib/services/NotificationService" ;
1211import { pendingRecovery } from " $lib/stores/pendingRecovery" ;
1312import { ButtonAction } from " $lib/ui" ;
1413import { capitalize , getCanonicalBindingDocString } from " $lib/utils" ;
@@ -19,9 +18,6 @@ import { Shadow } from "svelte-loading-spinners";
1918import { v4 as uuidv4 } from " uuid" ;
2019import { provision } from " wallet-sdk" ;
2120
22- let pushToken = $state <string | undefined >(undefined );
23- let pushTokenError = $state <string | undefined >(undefined );
24- let pushTokenLoading = $state (true );
2521const ANONYMOUS_VERIFICATION_CODE = " d66b7138-538a-465f-a6ce-f6985854c3f4" ;
2622const KEY_ID = " default" ;
2723
@@ -735,18 +731,6 @@ const handleEnamePassphraseRecovery = async () => {
735731};
736732
737733onMount (async () => {
738- // Fetch push notification token for display (Android/iOS)
739- try {
740- pushToken = await NotificationService .getInstance ().getPushToken ();
741- if (! pushToken )
742- pushTokenError = " No token (desktop or permission denied)" ;
743- } catch (e ) {
744- pushTokenError =
745- e instanceof Error ? e .message : " Failed to get push token" ;
746- } finally {
747- pushTokenLoading = false ;
748- }
749-
750734 // Detect upgrade mode from query param
751735 const url = new URL (window .location .href );
752736 if (url .searchParams .get (" upgrade" ) === " 1" ) {
@@ -762,16 +746,6 @@ onMount(async () => {
762746 class =" min-h-svh px-[5vw] flex flex-col justify-between"
763747 style =" padding-top: max(4svh, env(safe-area-inset-top)); padding-bottom: max(16px, env(safe-area-inset-bottom));"
764748>
765- <section class =" mb-4 p-2 rounded bg-gray-100 text-xs" >
766- <p class =" font-medium text-gray-600 mb-1" >Push token (FCM/APNs):</p >
767- {#if pushTokenLoading }
768- <span class =" text-gray-500" >Loading...</span >
769- {:else if pushToken }
770- <code class ="block break-all text-gray-800" >{pushToken }</code >
771- {:else }
772- <span class ="text-amber-600" >{pushTokenError ?? " —" }</span >
773- {/if }
774- </section >
775749 <article class =" flex justify-center mb-4" >
776750 <img
777751 class =" w-[88vw] h-[39svh]"
0 commit comments