내용으로 건너뛰기

iOS 설정

GitHub

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

1. URL 스킴 추가

1. 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 디플링크 전달

호스트 앱에서 incoming URL을 처리하는 곳에 Capacitor에서 native SDK으로 전달하세요:

AppDelegate

AppDelegate
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.
  • iOS 설정에서 계속하세요.

iOS 설정을 사용 중이라면 iOS 설정 자연 플러그인 작업을 계획하는 데 사용하는 iOS 설정을 연결하세요. 자연 플러그인 작업을 계획하는 데 사용하는 @capgo/capacitor-contentsquare for the native capability in Using @capgo/capacitor-contentsquare, 자연 플러그인 작업을 계획하는 데 사용하는 @Capgo/__CAPGO_KEEP_1__-contentsquare Capgo 플러그인 Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트 Ionic Enterprise Plugin 대체 옵션 Ionic Enterprise Plugin 대체 옵션의 제품 워크플로에 대해