Zum Inhalt springen

iOS Setup

GitHub

Die Inhalte von Contentsquare werden automatisch gestartet, sobald das Plugin installiert ist, aber iOS-Funktionen wie SDK-Protokolle, Screenshot-Kapierung und Wiedergabe-Konfiguration benötigen die Einrichtung der URL-Verarbeitung.

1. Hinzufügen der URL-Scheme

Hinzufügen

zu Ihren App-URL-Schemes in Xcode oder Ihrer Host-App cs-$(PRODUCT_BUNDLE_IDENTIFIER) Zur Zwischenablage kopieren 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:

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)
}
  • Lancieren Sie die App auf einem Gerät oder Simulator.
  • Filtern Sie Xcode- oder Konsole-Protokolle mit CSLIB.
  • Öffnen Sie die Contentsquare-Mobil-Tooling und aktivieren Sie in-app-Funktionen, um zu bestätigen, dass der Deeplink bearbeitet wird.

Weitermachen von iOS-Einrichtung

Bleiben Sie bei der iOS-Einrichtung

Wenn Sie " iOS-Einrichtung um native Plugin-Arbeit zu planen, verbinden Sie es mit Mit @capgo/capacitor-contentsquare für die native Fähigkeit in Mit @capgo/capacitor-contentsquare, Capgo Plugin-Ordner für den Produktworkflow in Capgo Plugin-Ordner, Capacitor Plugins von Capgo für die Implementierungsdetails in Capacitor Plugins von Capgo, Hinzufügen oder Aktualisieren von Plugins für die Implementierungsdetails in Hinzufügen oder Aktualisieren von Plugins, und Alternativen zu Ionic Enterprise Plugin für den Produktworkflow in Ionic Enterprise Plugin Alternativen.