iOS 설정
설치 단계와 이 플러그인의 전체 마크다운 가이드를 포함한 설정 명령어를 복사하세요.
콘텐츠퀘어 트래킹은 플러그인이 설치되면 자동으로 시작되지만 iOS 내 앱 기능인 SDK 로그, 스크린샷 캡처 및 재생 구성은 업스트림 URL 처리 설정이 필요합니다.
1. URL 스킴을 추가하세요.
제목이 "1. URL 스킴을 추가하세요."인 섹션__CAPGO_KEEP_0__ 앱에 URL schemes을 Xcode 또는 호스트 앱의 cs-$(PRODUCT_BUNDLE_IDENTIFIER) __CAPGO_KEEP_1__로 incoming URL을 전달하는 Info.plist.
<key>CFBundleURLTypes</key><array> <dict> <key>CFBundleURLSchemes</key> <array> <string>cs-$(PRODUCT_BUNDLE_IDENTIFIER)</string> </array> </dict></array>2. Contentsquare deeplinks을 전달하세요
2. Contentsquare deeplinks 전달Capacitor 호스트 앱에서 incoming URL을 받는 곳은 SDK로 전달하세요.
AppDelegate
AppDelegateimport ContentsquareModule
func application( _ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool { Contentsquare.handle(url: url) return true}SceneDelegate
SceneDelegateimport 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. 설치 확인
Section titled “3. 설치 확인”- 디바이스나 시뮬레이터에서 앱을 실행합니다.
- Xcode 또는 Console 로그를 필터링합니다.
CSLIB. - Contentsquare 모바일 도구를 열고 인앱 기능을 트리거하여 deeplink가 처리되는지 확인합니다.
iOS 설정에서 계속
Section titled “iOS 설정에서 계속”Capgo를 사용하는 경우 iOS 설정 native 플러그인 작업을 계획하기 위해 연결하세요. Using @capgo/capacitor-contentsquare native 기능을 사용하는 경우 Using @capgo/capacitor-contentsquare Capgo 플러그인 디렉토리 Capgo 플러그인 디렉토리에서 제품 워크플로우를 위해 Capacitor 플러그인들에 의해 Capgo Capacitor 플러그인들에 의해 Capgo의 implementation detail 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트의 implementation detail Ionic Enterprise 플러그인 대체 Ionic Enterprise 플러그인 대체의 제품 워크플로우