Objective-C with Scenes
If your application is written in Objective-C, and uses Scenes, having a SceneDelegate file, follow these steps:
Open the SceneDelegate.m file and add the
#import <PulseLabsFlightRecorderSDK/PulseLabsFlightRecorderSDK-Swift.h>
statement to the top of the file:SceneDelegate.mAdd the
[FlightRecorderSDK startWithApiKey:@"YOUR_API_KEY" automaticallyShowIntroduction:TRUE];
line of code in thesceneDidBecomeActive:
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 formSceneDelegate.m
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 Troubleshooting section.
Last updated