Repro - Mobile Analytics for growth
日本語
Sign Up Back to Dashboard
  • System Requirements
  • Dashboard Guide
  • Development Guide
  • Release Notes
    • SDK
      • iOS
        • iOS SDK Upgrade Guide
        • 5.20.0 (2025/04/25)
        • 5.19.1 (2025/04/07)
        • 5.19.0 (2024/12/26)
        • 5.18.0 (2024/10/03)
        • 5.17.1 (2024/08/06)
        • 5.17.0 (2024/07/10)
        • 5.16.0 (2024/05/17)
        • 5.15.0 (2024/04/30)
        • 5.14.0 (2024/01/19)
        • 5.13.1 (2023/12/22)
        • 5.13.0 (2023/11/17)
        • 5.12.0 (2023/10/16)
        • 5.11.1 (2023/09/12)
        • 5.11.0 (2023/06/12)
        • 5.10.1 (2023/05/17)
        • 5.10.0 (2023/04/04)
        • 5.9.5 (2023/03/08)
        • 5.9.4 (2023/02/13)
        • 5.9.3 (2022/12/27)
        • 5.9.2 (2022/10/17)
        • 5.9.1 (2022/10/05)
        • 5.9.0 (2022/07/22)
        • 5.8.3 (2022/04/11)
        • 5.8.2 (2022/03/25)
        • 5.8.1 (2022/02/16)
        • 5.8.0 (2021/12/06)
        • 5.7.1 (2021/10/22)
        • 5.7.0 (2021/10/01)
        • 5.6.0 (2021/07/20)
        • 5.5.3 (2021/06/16)
        • 5.5.1 (2021/05/28)
        • 5.5.0 (2021/05/20)
        • 5.4.0 (2021/03/08)
        • 5.3.0 (2021/02/01)
        • 5.2.12 (2020/12/21)
        • 5.2.8 (2020/11/25)
        • 5.2.2 (2020/10/22)
        • 5.2.0 (2020/10/07)
        • 5.1.0 (2020/08/11)
        • 5.0.2 (2020/07/01)
        • 5.0.1 (2020/06/25)
        • 5.0.0 (2020/06/19)
        • 4.8.0 (2020/05/20)
        • 4.7.1 (2020/04/08)
        • 4.7.0 (2020/03/23)
        • 4.6.2 (2020/03/05)
        • 4.6.0 (2020/02/05)
        • 4.5.1 (2020/01/22)
        • 4.5.0 (2019/12/10)
        • 4.4.0 (2019/11/14)
        • 4.3.0 (2019/10/07)
        • 4.2.0 (2019/08/23)
        • 4.1.0 (2019/07/18)
        • 4.0.3 (2019/05/22)
          • Changes for Swift API of iOS SDK 4.0.3
        • 3.3.2 (2019/04/19)
        • 3.3.1 (2019/04/11)
        • 3.3.0 (2019/03/22)
        • 3.2.2 (2019/03/05)
        • 3.2.0 (2019/02/14)
        • 3.1.0 (2019/01/30)
        • 3.0.6 (2018/11/22)
        • 3.0.4 (2018/11/14)
        • 3.0.3 (2018/10/25)
        • 3.0.2 (2018/10/23)
        • 3.0.1 (2018/09/20)
        • 3.0.0 (2018/08/24)
        • 2.13.0 (2018/08/08)
        • 2.12.2 (2018/07/19)
        • 2.11.1 (2018/06/29)
        • 2.10.11 (2018/06/19)
        • 2.10.7 (2018/05/11)
        • 2.10.4 (2018/04/16)
        • 2.10.0 (2018/03/20)
        • 2.9.11 (2018/03/02)
        • 2.9.1 (2018/02/20)
        • 2.9.0 (2018/01/18)
        • 2.8.6 (2018/02/20)
        • 2.8.5 (2017/12/18)
        • 2.8.0 (2017/11/16)
        • 2.7.4 (2018/02/20)
        • 2.7.3 (2017/10/31)
        • 2.7.0 (2017/10/19)
        • 2.6.10 (2018/02/20)
        • 2.6.9 (2017/10/05)
        • 2.6.8 (2017/09/21)
        • 2.6.5 (2017/09/07)
        • 2.6.0 (2017/08/23)
        • 2.5.3 (2018/02/20)
        • 2.5.2 (2017/08/04)
        • 2.5.0 (2017/07/03)
        • 2.4.1 (2018/02/20)
        • 2.4.0 (2017/05/23)
        • 2.3.2 (2018/02/20)
        • 2.3.1 (2017/05/19)
        • 2.2.18 (2018/02/20)
        • 2.2.17
        • 2.2.13
        • 2.2.9
        • 2.2.2
        • 2.1.13 (2018/02/20)
        • 2.1.12
        • 2.1.3
        • 2.1.0
        • 2.0.10 (2018/02/20)
        • 2.0.9
        • 2.0.6
        • 2.0.4
        • 2.0.0
        • 1.7.35 (2018/02/20)
        • 1.7.34
        • 1.7.30
        • 1.7.25
        • 1.7.19
        • 1.7.16
        • 1.7.15
        • 1.7.9
        • 1.7.6
        • 1.7.3
        • 1.7.0
        • 1.6.5 (2018/02/20)
        • 1.6.4
        • 1.6.0
        • 1.5.2 (2018/02/20)
        • 1.5.1
        • 1.4.28 (2018/02/20)
        • 1.4.27
        • 1.4.22
        • 1.4.14
        • 1.4.9
        • 1.4.0
        • 1.3.23
        • 1.3.19
        • 1.3.15
        • 1.3.14
        • 1.3.13
        • 1.3.10
        • 1.2.10.1
        • 1.2.10
        • 1.0.5
        • 0.10.4.1
        • 0.10.4
        • 0.9.11
        • 0.9.8
        • 0.9.7
        • 0.8.0
        • 0.4.7
        • 0.4.6
        • 0.4.5
        • 0.4.4
        • 0.4.3
        • 0.4.2
        • 0.4.1
        • 0.4.0
        • 0.3.9
        • 0.3.8
        • 0.3.7
        • 0.3.6
        • 0.3.5
        • 0.3.4
        • 0.3.3
        • 0.3.2
        • 0.3.1
        • 0.3.0
        • 0.2.8
        • 0.2.7
        • 0.2.6
        • 0.2.5
        • 0.2.4
        • 0.2.3
        • 0.2.2
        • 0.1.8
      • Android
      • Unity
      • Cordova
      • Cocos2d-x
      • React Native
      • React Native (Expo)
      • Flutter
      • Support period for each version
    • Web
    • Domain change related tasks
    • FCM transition procedure
  • FAQ

Changes for Swift API of iOS SDK 4.0.3¶

In order to remove misleading method names, all Swift API method names should now get correctly translated from Objective-C to Swift. Please refer to the development guide or the renaming table below.

API until now

API from now on

Repro.optIn(true) Repro.optIn(endUserOptedIn: true)
Repro.setup("YOUR_APP_TOKEN") Repro.setup(token:"YOUR_APP_TOKEN")
Repro.setUserID("user_id") Repro.set(userID: "user_id")
Repro.getUserID() Repro.userID()
Repro.getDeviceID() Repro.deviceID()
Repro.setStringUserProfile("green", forKey: "eyecolor") Repro.setUserProfile(stringValue: "green", forKey: "eyecolor")
Repro.setIntUserProfile(30, forKey: "age") Repro.setUserProfile(integerValue: 30, forKey: "age")
Repro.setDoubleUserProfile(40.5, forKey: "shoesize") Repro.setUserProfile(doubleValue: 40.5, forKey: "shoesize")
Repro.setDateUserProfile(NSDate() as Date, forKey: "now") Repro.setUserProfile(dateValue: Date(), forKey: "now")
Repro.setUserGender(.male) Repro.setUserProfile(gender: .male)
Repro.setUserEmailAddress("user@example.com") Repro.setUserProfile(emailAddress: "user@example.com")
Repro.track("trackname", properties: [:]) Repro.track(event: "trackname", properties: [:])
Repro.startWebViewTracking(self) Repro.startWebViewTracking(delegate: self)
Repro.trackViewContent("contentIDstr", properties: nil) Repro.trackViewContentEvent(contentID: "contentIDstr", properties: nil)
Repro.trackSearch(nil) Repro.trackSearchEvent(properties: nil)
Repro.trackAdd(toCart: "contentIDstr", properties: nil) Repro.trackAddToCartEvent(contentID: "contentIDstr", properties: nil)
Repro.trackAdd(toWishlist: nil) Repro.trackAddToWishlistEvent(properties: nil)
Repro.trackInitiateCheckout(nil) Repro.trackInitiateCheckoutEvent(properties: nil)
Repro.trackAddPaymentInfo(nil) Repro.trackAddPaymentInfoEvent(properties: nil)
Repro.trackPurchase("contentIDstr", value: 3.50, currency: "USD", properties: nil) Repro.trackPurchaseEvent(contentID: "contentIDstr", value: 3.50, currency: "USD", properties: nil)
Repro.trackShare(nil) Repro.trackShareEvent(properties: nil)
Repro.trackCompleteRegistration(nil) Repro.trackCompleteRegistrationEvent(properties: nil)
Repro.trackLead(nil) Repro.trackLeadEvent(properties: nil)
Repro.setLogLevel(.debug) Repro.set(logLevel: .debug)
Repro.setPushDeviceToken(NSData() as Data) Repro.setPushDeviceToken(data: Data())
Repro.setPushDeviceTokenString("03df25c...") Repro.setPushDeviceToken(string: "03df25c...")
Repro.disableInAppMessageOnActive() Repro.disableInAppMessageOnActive()
Repro.showInAppMessage() Repro.showInAppMessage()
  • « iOS SDK Upgrade Guide
  • Android SDK Release Notes »

About Us Careers Terms of Service Privacy Policy Cookie Policy

© 2022 Repro Inc.