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
- Create a sample mobile application using X-Code in swift.
- Open the project in a terminal and add pod using pod init command.
- After pod init, run pod install command (skip this if pod is already added in existing application).
- Close the X-Code project.
- Open the SampleApp.xcworkspace file in X-Code.
- Open Podfile inside the Pods folder and add pod 'SixthSenseMobileSDK'.
- Open the project in a terminal and run pod update command. It will download the SixthSenseMobileSDK in the sample application.
- Go to AppDelegate class and import SixthSenseMobileSDK and Initialise SDK in the didDinishLaunching function with the following code:
SixthSenseMobile.shared.initSixthSenseMobileSDK()
- Pass the accessToken value to initSDK function.
- 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, usehttps://sixthsense-backend.jpe2-caas1-prod1.caas.jpe2b.r-local.net/mobile )
Testing the agent
- You are now in an Xcode workspace for building, debugging, and testing the Mobile Monitoring feature.
- For force crash, import SixthSenseMobileSDK in any View Controller class and call fatalError()
- Run the application in a simulator and try to make the application crash.
- After crashing, relaunch the application in a simulator/device.
- Open the Mobile Monitoring dashboard.
- Go to the Mobile Monitoring tab and check the crash logs and other matrices.