Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.17 KB

File metadata and controls

36 lines (25 loc) · 1.17 KB

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

WebTestApp - iOS application for testing how embedded WebViews work with Service Workers.

Requirements

Architecture

  • Two-tab interface:
    • Tab 1: WKWebView-based browser
    • Tab 2: SFSafariViewController-based browser

Service Worker Support (WKWebView)

  • WKAppBoundDomains in Info.plist: pressreader.com, www.pressreader.com, services.pressreader.com
  • Configure WKWebView with limitsNavigationsToAppBoundDomains = true on WKWebViewConfiguration
  • Service Workers only work with app-bound domains in WKWebView

Debugging

  • Enable Web Inspector for WKWebView (isInspectable = true on iOS 16.4+)
  • Allows debugging via Safari Developer Tools on Mac

Build & Development Commands

# Open project in Xcode
open WebTestApp.xcodeproj

# Build from command line
xcodebuild -project WebTestApp.xcodeproj -scheme WebTestApp -sdk iphonesimulator build

# Run on simulator
xcodebuild -project WebTestApp.xcodeproj -scheme WebTestApp -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 15' build run