메뉴로 바로가기

__CAPGO_KEEP_0__

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

추가 cs-$(PRODUCT_BUNDLE_IDENTIFIER) Xcode 또는 호스트 앱의 URL 스킴에 추가하세요 Info.plist.

<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>cs-$(PRODUCT_BUNDLE_IDENTIFIER)</string>
</array>
</dict>
</array>
2. Contentsquare deeplink 전달

Capacitor 호스트 앱에서 들어오는 URL을 처리하는 곳이면, 그들을 SDK의 네이티브로 전달하세요.

AppDelegate

AppDelegate
import ContentsquareModule
func application(
_ app: UIApplication,
open url: URL,
options: [UIApplication.OpenURLOptionsKey : Any] = [:]
) -> Bool {
Contentsquare.handle(url: url)
return true
}

SceneDelegate

SceneDelegate
import ContentsquareModule
func scene(_ scene: UIScene, openURLContexts urlContexts: Set<UIOpenURLContext>) {
if let url = urlContexts.first?.url {
Contentsquare.handle(url: url)
}
}

SwiftUI

SwiftUI
import ContentsquareModule
.onOpenURL { url in
Contentsquare.handle(url: url)
}

3. 설치를 확인하세요

설치 확인 3. 섹션
  • 앱을 기기나 시뮬레이터에서 실행하세요.
  • Xcode 또는 Console 로그를 필터링하세요. CSLIB.
  • Contentsquare 모바일 도구를 열고 인앱 기능을 트리거하여 deeplink가 처리되는지 확인하세요.