내용으로 건너뛰기

iOS 설정

SDK 자동 추적이 플러그인 설치 후 자동으로 시작되지만, iOS 내 앱 기능인 로그, 스크린샷 캡처 및 재생 구성은 업스트림 URL 처리 설정이 필요합니다.

1. URL 스킴 추가

추가

Xcode 또는 호스트 앱의 URL 스킴 목록에 추가하세요. cs-$(PRODUCT_BUNDLE_IDENTIFIER) 클립보드에 복사 Info.plist.

<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>cs-$(PRODUCT_BUNDLE_IDENTIFIER)</string>
</array>
</dict>
</array>
AppDelegate

Wherever your Capacitor host app handles incoming URLs, forward them to the native SDK:

__CAPGO_KEEP_0__

__CAPGO_KEEP_1__
import ContentsquareModule
func application(
_ app: UIApplication,
open url: URL,
options: [UIApplication.OpenURLOptionsKey : Any] = [:]
) -> Bool {
Contentsquare.handle(url: url)
return true
}
import ContentsquareModule
func scene(_ scene: UIScene, openURLContexts urlContexts: Set<UIOpenURLContext>) {
if let url = urlContexts.first?.url {
Contentsquare.handle(url: url)
}
}
import ContentsquareModule
.onOpenURL { url in
Contentsquare.handle(url: url)
}
  • Xcode 또는 Console 로그를 필터링합니다.
  • Contentsquare 모바일 도구를 열고 인앱 기능을 트리거하여 deeplink가 처리되는지 확인합니다. CSLIB.
  • 편집 페이지