[Firebase / Analytics] [I-ACS023024]无需上传数据。上传任务不会被安排

时间:2017-12-01 07:40:14

标签: ios objective-c firebase firebase-analytics

  • 我将FireBase Analytics集成到项目SDK Cocoa Touch Framework中
  • 我在没有CocoaPods的情况下进行整合
  • 在我的项目演示中我调用函数:[SDKManager handleApplication:application didFinishLaunchingWithOptions:launchOptions]; for我的SDK中的init [FIRApp配置]

    (BOOL)应用程序:(UIApplication *)应用程序didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    [FIRApp configure];
    // Override point for customization after application launch.
    //[SDKManager defaultManager].isSandbox = true;
    [SDKManager handleApplication:application didFinishLaunchingWithOptions:launchOptions];
    

在我的SDK中创建此功能:

+ (void)handleApplication:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [[SDKManager defaultManager] handleApplication:application didFinishLaunchingWithOptions:launchOptions];
    [VTCSDKAppDelegate loadSDKAppDelegate];
    [[SDKManager defaultManager] initSDK];
}

- (void)handleApplication:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // hide the status bar
    [[UIApplication sharedApplication] setStatusBarHidden:YES];

    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(handleApplicationWillEnterBackground:)
                                                 name:UIApplicationWillResignActiveNotification
                                               object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(handleApplicationWillEnterForeground:)
                                                 name:UIApplicationWillEnterForegroundNotification
                                               object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(handleApplicationWillTerminate:) name:UIApplicationWillTerminateNotification
                                               object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(handleApplicationDidBecomeActive:) name:UIApplicationDidBecomeActiveNotification
                                               object:nil];

    // Facebook
    [[FBSDKApplicationDelegate sharedInstance] application:application
                             didFinishLaunchingWithOptions:launchOptions];

    //FireBase
    [FIRApp configure];
}

但是 但是没有检查控制台FireBase上的数据

Log

0 个答案:

没有答案