Pulse FlightRecorder Docs
  • SDK Documentation
    • Pulse Labs FlightRecorder Documentation
      • iOS
        • Overview
        • Install the SDK
        • Get your API Key
        • SDK Configuration
          • Swift + SwiftUI
          • Swift + UIKit with Scenes
          • Swift + UIKit without Scenes
          • Objective-C with Scenes
          • Objective-C without Scenes
        • Create Custom Triggers
          • Capture Recording
          • Show the Introduction Screen
        • Update the SDK
        • Troubleshooting
      • Android
        • Overview
        • Install the SDK
        • Get your API Key
        • SDK Configuration
          • Kotlin
          • Java
        • Create Custom Triggers
          • Capture Recording
          • Show the Introduction Screen
        • Update the SDK
        • Troubleshooting
      • ReactNative
        • Install SDK for ReactNative iOS
        • Install SDK for ReactNative Android
        • Update the SDK
      • Flutter
        • Overview
        • Install the SDK
        • Get your API Key
        • SDK Configuration
        • Create Custom Triggers
          • Capture Recording
          • Show the Introduction Screen
      • In-app Surveys
        • Create Survey
        • Edit Survey
        • Launch Survey
        • Pause Survey
        • Survey Responses
        • Survey Styling
    • ⬅️FlightRecorder Home
Powered by GitBook
On this page
  1. SDK Documentation
  2. Pulse Labs FlightRecorder Documentation
  3. iOS
  4. SDK Configuration

Objective-C with Scenes

Last updated 9 months ago

If your application is written in Objective-C, and uses Scenes, having a SceneDelegate file, follow these steps: ​

  1. Open the SceneDelegate.m file and add the #import <PulseLabsFlightRecorderSDK/PulseLabsFlightRecorderSDK-Swift.h> statement to the top of the file:

    SceneDelegate.m
    #import "SceneDelegate.h"
    
    // INSERT HERE:
    #import <PulseLabsFlightRecorderSDK/PulseLabsFlightRecorderSDK-Swift.h>
    
    @interface SceneDelegate ()

  2. Add the [FlightRecorderSDK startWithApiKey:@"YOUR_API_KEY" automaticallyShowIntroduction:TRUE]; line of code in the sceneDidBecomeActive: delegate method, replacing "YOUR_API_KEY" with your own API key. There is also one optional parameter called "surveyName" that takes in a string. If you have designed an in-app survey on the portal, then supply the unique survey name string here, and it will show that instead of the default form

    SceneDelegate.m
    - (void)sceneDidBecomeActive:(UIScene *)scene {
        
        // INSERT:
        [FlightRecorderSDK startWithApiKey:@"YOUR_API_KEY" automaticallyShowIntroduction:TRUE surveyName: "SURVEY_NAME"?];
    
    }

The SDK is now installed! Run your app on a real device (the SDK will not work in a simulator) and the introduction screen will appear on the first run. You can then shake or take a screenshot to capture the video content and send a report.

If you have any issues, head to the section.

Troubleshooting