diff --git a/src/app/(mobile-ui)/support-test/page.tsx b/src/app/(mobile-ui)/support-test/page.tsx new file mode 100644 index 000000000..9abfb8d65 --- /dev/null +++ b/src/app/(mobile-ui)/support-test/page.tsx @@ -0,0 +1,34 @@ +'use client' + +/** + * MINIMAL TEST PAGE for iOS debugging + * This bypasses all custom hooks to test if basic rendering works + */ +export default function SupportTestPage() { + return ( +
+

iOS Test Page

+

If you see this, page rendering works!

+

+ User agent: {typeof navigator !== 'undefined' ? navigator.userAgent : 'Loading...'} +

+
+ + Try /support page + +
+
+ ) +} + diff --git a/src/app/(mobile-ui)/support/page.tsx b/src/app/(mobile-ui)/support/page.tsx index 2a0072c82..6e55209e6 100644 --- a/src/app/(mobile-ui)/support/page.tsx +++ b/src/app/(mobile-ui)/support/page.tsx @@ -1,37 +1,33 @@ 'use client' -import { useState, useEffect } from 'react' +import { useEffect } from 'react' import { useCrispUserData } from '@/hooks/useCrispUserData' import { useCrispProxyUrl } from '@/hooks/useCrispProxyUrl' -import PeanutLoading from '@/components/Global/PeanutLoading' +import { CrispIframe } from '@/components/Global/CrispIframe' const SupportPage = () => { const userData = useCrispUserData() const crispProxyUrl = useCrispProxyUrl(userData) - const [isLoading, setIsLoading] = useState(true) + // Debug logging for iOS useEffect(() => { - // Listen for ready message from proxy iframe - const handleMessage = (event: MessageEvent) => { - if (event.origin !== window.location.origin) return - - if (event.data.type === 'CRISP_READY') { - setIsLoading(false) - } - } - - window.addEventListener('message', handleMessage) - return () => window.removeEventListener('message', handleMessage) - }, []) + console.log('[SupportPage] Mounted', { + crispProxyUrl, + userAgent: typeof navigator !== 'undefined' ? navigator.userAgent : 'SSR', + windowHeight: typeof window !== 'undefined' ? window.innerHeight : 'SSR', + }) + }, [crispProxyUrl]) return ( -
- {isLoading && ( -
- -
- )} -