Installing Omnissa Intelligence SDK for iOS
Note
Cocoapods is no longer supported as a means of installing Omnissa Intelligence SDK. Please use Swift Package Manager as described below. The Crittercism framework is no longer supported. Use the WS1IntelligenceSDK framework.
Add the Omnissa Intelligence SDK Swift Package Manager (SPM) package from this URL: https://github.com/euc-releases/ws1-intelligencesdk-sdk-ios.git
Basic Setup¶
Obtain your app ID from Omnissa Intelligence platform. Please check Omnissa Intelligence SDK Data for Apps for more information.
1. Import the Omnissa Intelligence SDK header.¶
Note
SDK imports must now be from the “WS1IntelligenceSDK” module rather than the “WS1Intelligence” module.
For Objective-C apps, import the Omnissa Intelligence SDK header in your application delegate’s implementation file.
#import <WS1IntelligenceSDK/WS1Intelligence.h>
For Swift applications, place this import in your bridging-header.h file.
import WS1IntelligenceSDK
2. Enable Omnissa Intelligence SDK.¶
Call enableWithAppID
in your AppDelegate’s application:didFinishLaunchingWithOptions:
method.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[WS1Intelligence enableWithAppID:@"YOUR APP ID GOES HERE"];
// other code for your app
return YES;
}
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
WS1Intelligence.enable(withAppID: "YOUR APP ID GOES HERE")
// other code for your app
return true
}
Register your app at the Omnissa Intelligence portal to get an App ID to be used in place of "YOUR APP ID GOES HERE".
Your app is now integrated with Omnissa Intelligence! Additional features require adding more code to your project.
Interoperability with other SDKs¶
Recommended initialization orders:
Crashlytics:¶
Omnissa Intelligence SDK should be initialized before Crashlytics
Objective-C
[WS1Intelligence enableWithAppID:@"YOUR APP ID GOES HERE"];
// Initialize Crashlytics
Swift
WS1Intelligence.enable(withAppID: "YOUR APP ID GOES HERE")
// Initialize Crashlytics
AppDynamics:¶
AppDynamics should be initialized before Omnissa Intelligence SDK
Objective-C
// Initialize AppDynamics
[WS1Intelligence enableWithAppID:@"YOUR APP ID GOES HERE"];
Swift
// Initialize Crashlytics
WS1Intelligence.enable(withAppID: "YOUR APP ID GOES HERE")
New Relic:¶
Omnissa Intelligence SDK should be initialized before New Relic
Objective-C
[WS1Intelligence enableWithAppID:@"YOUR APP ID GOES HERE"];
// Initialize New Relic
Swift
WS1Intelligence.enable(withAppID: "YOUR APP ID GOES HERE")
// Initialize New Relic