Files
daily-notification-plugin/test-apps/ios-test-app/App
Matthew Raymer 3a7c68c756 fix(ios): use storyboard to load ViewController - resolves black screen
Fixed ViewController instantiation to resolve black screen issue:

Storyboard Loading:
- Changed from direct ViewController() instantiation to storyboard loading
- Uses UIStoryboard(name: "Main", bundle: nil) to load ViewController
- This is Capacitor's standard approach for iOS apps
- Falls back to CAPBridgeViewController if storyboard fails

Root Cause:
- Direct ViewController() instantiation caused compilation error
- ViewController class wasn't in scope for direct instantiation
- SceneDelegate approach also failed (class not found by iOS runtime)
- Storyboard approach works because it's configured in Main.storyboard

Fixes:
- Black screen: ViewController now loads correctly from storyboard
- WebView initialization: CAPBridgeViewController initializes properly
- HTML loading: WebView can now load index.html from bundle
- App display: App now shows content instead of black screen

Result: iOS test app now displays correctly with WebView and HTML content
2025-11-11 21:39:22 -08:00
..