iOS:Google Analytics sendEventWithCategory在iPad Sim上返回NO



我有一个奇怪的行为,下面的代码在iPad Sim 6.1的"result"中失败(返回NO),但在iPhone Sim 6.1上成功(返回YES),知道为什么吗?

    id result = [[GAI sharedInstance] trackerWithTrackingId:GA_TRACKING_ID];
    BOOL result = [[[GAI sharedInstance] defaultTracker]
      sendEventWithCategory:category
      withAction:action
      withLabel:label withValue:nil];

找到了解决方案:跟踪器有时会在初始化和事件之间错误关闭

最新更新