Zum Inhalt

Parallele Messung IOMb & IOMp/ÖWA

Die IOMbLib iOS unterstützt den parallelen Betrieb von Sessions der folgenden Mess-Systeme:

  • IOMb/Zensus (IOMb Library iOS)
  • IOMp/SZM (INFOnline Library iOS)
  • ÖWA (INFOnline Library iOS)

Im folgenden soll gezeigt werden, wie die Messungen von IOMb sowie IOMp(SZM) und ÖWA gleichzeitig betrieben werden können.

Voraussetzung dafür ist eine Integration der folgenden Bibliotheken in ihr iOS App Projekt:


Xcode: Erstellung SessionConfiguration Objekte für IOMb, SZM und ÖWA sowie Initialisierung alle drei Sessions

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:
    [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

        startIOMbSession()
        startIOMpSession()
        startOEWASession()
        return true
}

private func startIOMbSession() {
    guard let url = URL(string: "https://data-ef4e2c0163.example.com") else { return }
    let configuration = IOMBSessionConfiguration(offerIdentifier: "Angebotskennung", baseURL: url)
    IOMBSession.defaultSession(for: .iomb).start(with: configuration)
}

private func startIOMpSession() {
    IOLSession.defaultSession(for: IOLSessionType.SZM).start(withOfferIdentifier: "Angebotskennung", privacyType: IOLPrivacyType.LIN)
}

private func startOEWASession() {
    IOLSession.defaultSession(for: IOLSessionType.OEWA).start(withOfferIdentifier: "Angebotskennung", privacyType: IOLPrivacyType.LIN)
}

Xcode: Events in IOMb müssen separat von Events in den übrigen Messsystemen intialisiert und geloggt werden. Hier z.B. der Aufruf eines Views:

1
2
3
4
5
6
 let iombEvent = IOMBViewEvent(type: .appeared, category: "Home", comment: nil)
 IOMBSession.defaultSession(for: .iomb).logEvent(iombEvent)

 let iolEvent = IOLViewEvent(type: .appeared, category: "Home", comment: nil)
 IOLSession.defaultSession(for: .SZM).logEvent(iolEvent)
 IOLSession.defaultSession(for: .OEWA).logEvent(iolEvent)

Parallele Hybrid-Messung IOMb & IOMp/ÖWA

Wichtig zu beachten!

Für eine parallele hybride Messung der Messsysteme Zensus und pseudonym (oder ÖWA) muss die Klasse IOLWKWebView verwendet und damit configureWebViewForIOMbHybridMeasure aufgerufen werden:

1
2
let webView = IOLWKWebView()
webView.configureWebViewForIOMbHybridMeasure()

Letztes Update: July 14, 2023