내용으로 건너뛰기

iOS 설정

GitHub

Contentsquare tracking starts automatically once the plugin is installed, but iOS in-app features such as SDK logs, screenshot capture, and replay configuration still need the upstream URL handling setup.

1. URL 스킴 추가

1. URL 스킴 추가

추가 cs-$(PRODUCT_BUNDLE_IDENTIFIER) 앱 URL 스킴에 추가하세요. Info.plist.

<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>cs-$(PRODUCT_BUNDLE_IDENTIFIER)</string>
</array>
</dict>
</array>
2. 콘텐츠 스퀘어 디플링크 전달

어디서든 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. 설치를 확인하세요

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

iOS 설정에서 계속 진행하세요.

iOS 설정에서 계속 진행하세요.

iOS 설정을 사용하여 iOS 설정 native 플러그인 작업을 계획하려면 Using @capgo/capacitor-contentsquare Using @capgo/capacitor-contentsquare Capgo 플러그인 디렉토리 Capgo 플러그인 디렉토리 Capacitor 플러그인들에 의해 Capgo Capacitor 플러그인들에 의해 Capgo 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트 구현 세부 사항에 대해 아이오닉 엔터프라이즈 플러그인 대체 아이오닉 엔터프라이즈 플러그인 대체 제품 워크플로에 대해