Files
daily-notification-plugin/test-apps/ios-test-app/App/App/public/test.html
Matthew Raymer 9582dd8d8c test(ios): add sanity check to diagnose WebView loading issue
Added comprehensive sanity check to diagnose why HTML isn't loading:

Sanity Check:
- Creates simple test.html with red background for visibility
- Checks if bridge and WebView exist
- Attempts to load test.html or index.html directly
- Lists bundle contents to see what files are actually present
- Provides detailed logging of WebView state

Debugging:
- Checks bridge initialization
- Checks WebView existence
- Checks file paths in bundle
- Lists actual bundle contents

Fixes:
- WebView diagnosis: can now see if WebView exists and what URL it has
- File path verification: checks if HTML files are in bundle
- Bundle inspection: lists what files are actually available

Result: Will show exactly why HTML isn't loading - WebView issue, file path issue, or Capacitor config issue
2025-11-11 21:14:37 -08:00

25 lines
540 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sanity Check</title>
<style>
body {
background: red;
color: white;
font-size: 48px;
text-align: center;
padding: 50px;
margin: 0;
}
</style>
</head>
<body>
<h1>✅ SANITY CHECK PASSED!</h1>
<p>If you see this, the WebView is working!</p>
<p>HTML is loading correctly!</p>
</body>
</html>