application:didFinishLaunchingWithOptions:delegate.#import <BuglyPro/Bugly.h>#import <BuglyPro/BuglyConfig.h>#import <BuglyPro/BuglyDefine.h>
// Creates a config object with the product's APP_ID and APP_KEY.BuglyConfig *config = [[BuglyConfig alloc] initWithAppId:APP_ID appKey:APP_KEY];// Required. Specifies the reporting domain type.config.serverHostType = BuglyServerHostTypeCloud;// Recommended. Specifies the build type. This field will be used in later configurations.config.buildConfig = BuglyBuildConfigGray;// Optional. Sets Bugly callbacks.config.delegate = self;// Sets device ID and user ID as early as possible.config.deviceIdentifier = @"device_id";config.userIdentifier = @"user_id";NSArray *modules = @[BUGLY_MODULE_CRASH, RM_MODULE_LOOPER, RM_MODULE_MEMORY];// NSArray *modules = RM_MODULE_ALL;[Bugly start:modules config:config completeHandler:^{// SDK initialization completion callback}];
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback