iOS agent

Prerequisites

  • Mac OS 10.15.7 and above
  • iOS 13 and above
  • Download and install X-Code 12.2 and above
  • Install cocoa pods in your system

Developing the agent

  1. Create a sample mobile application using X-Code in swift.
  2. Open the project in a terminal and add pod using pod init command.
  3. After pod init, run pod install command (skip this if pod is already added in existing application).
  4. Close the X-Code project.
  5. Open the SampleApp.xcworkspace file in X-Code.
  6. Open Podfile inside the Pods folder and add pod 'SixthSenseMobileSDK'.
  7. Open the project in a terminal and run pod update command. It will download the SixthSenseMobileSDK in the sample application.
  8. Go to AppDelegate class and import SixthSenseMobileSDK and Initialise SDK in the didDinishLaunching function with the following code:
SixthSenseMobile.shared.initSixthSenseMobileSDK()
  1. Pass the accessToken value to initSDK function.
  2. Open the Info.plist file and add the following:
  • Add EndPointName key as a string and also add the value: https://http-collector-observability.sixthsense.rakuten.com/poc-mobile/ (for OneCloud Platform, use https://sixthsense-backend.jpe2-caas1-prod1.caas.jpe2b.r-local.net/mobile)

Testing the agent

  1. You are now in an Xcode workspace for building, debugging, and testing the Mobile Monitoring feature.
  2. For force crash, import SixthSenseMobileSDK in any View Controller class and call fatalError()
  3. Run the application in a simulator and try to make the application crash.
  4. After crashing, relaunch the application in a simulator/device.
  5. Open the Mobile Monitoring dashboard.
  6. Go to the Mobile Monitoring tab and check the crash logs and other matrices.