我正在尝试在新版本的应用程序中实现Flurry,但是没有任何事件发送到Flurry控制台/站点。

我正在使用Flurry SDK 5.60,并尝试了许多不同的操作,并且在日志中收到Analytics report sent消息,这使我认为一切正常。

为了进行测试,我正在更改应用程序的版本号,并且在Flurry网站/控制台上的“事件日志”中可以看到,新版本号在我使用该应用程序后约5-10分钟出现,但它表示该事件下没有任何事件。版。

我在onCreate的扩展Application类中设置Flurry

public class App extends Application {

public static final String KEY = "FD**************QZ";

@Override
public void onCreate() {
    super.onCreate();

    FlurryAgent.setLogEnabled(true);
    FlurryAgent.setLogLevel(Log.VERBOSE);
    FlurryAgent.init(this, KEY);

}


}

然后,在我的应用程序中,我使用FlurryAgent.LogEvent()发送事件

switch (position) {
    case 0:
        fragment = OneFragment.newInstance("ONE");
        FlurryAgent.logEvent("ONE PRESSED");
        break;
    default:
        fragment = TwoFragment.newInstance("TWO");
        FlurryAgent.logEvent("TWO PRESSED");
        break;
}


以下是我对该应用程序进行测试运行的日志。我启动它,单击我的按钮发送消息,然后关闭该应用程序(在“最近使用”列表中将其擦除)并再次启动,以强制发送报告。该日志中的所有内容对我来说都很好?

08-04 12:12:22.737  14841-14865/com.nap.jebise W/FlurryAgent﹕ Flurry session paused for context:com.nap.jebise.MainActivity@95bd500
08-04 12:12:25.447  15415-15433/com.nap.jebise I/FlurryAgent﹕ New main file also not found. returning..
08-04 12:12:25.457  15415-15433/com.nap.jebise W/FlurryAgent﹕ Flurry session started for context:com.nap.jebise.MainActivity@95bd500
08-04 12:12:25.457  15415-15433/com.nap.jebise W/FlurryAgent﹕ Flurry session resumed for context:com.nap.jebise.MainActivity@95bd500
08-04 12:12:25.547  15415-15433/com.nap.jebise D/FlurryAgent﹕ Referrer file contents: null
08-04 12:12:28.537  15415-15415/com.nap.jebise W/FlurryAgent﹕ Event count started: ONE PRESSED
08-04 12:12:28.677  15415-15446/com.nap.jebise W/FlurryAgent﹕ Analytics report sent.
08-04 12:12:29.757  15415-15415/com.nap.jebise W/FlurryAgent﹕ Event count started: TWO PRESSED
08-04 12:12:30.907  15415-15415/com.nap.jebise W/FlurryAgent﹕ Event count incremented: ONE PRESSED
08-04 12:12:32.707  15415-15415/com.nap.jebise W/FlurryAgent﹕ Event count incremented: ONE PRESSED
08-04 12:12:34.397  15415-15433/com.nap.jebise W/FlurryAgent﹕ Flurry session paused for context:com.nap.jebise.MainActivity@95bd500
08-04 12:12:37.997  15910-15928/com.nap.jebise I/FlurryAgent﹕ New main file also not found. returning..
08-04 12:12:37.997  15910-15928/com.nap.jebise W/FlurryAgent﹕ Flurry session started for context:com.nap.jebise.MainActivity@95bd500
08-04 12:12:37.997  15910-15928/com.nap.jebise W/FlurryAgent﹕ Flurry session resumed for context:com.nap.jebise.MainActivity@95bd500
08-04 12:12:38.087  15910-15928/com.nap.jebise D/FlurryAgent﹕ Referrer file contents: null
08-04 12:12:41.067  15910-15945/com.nap.jebise W/FlurryAgent﹕ Analytics report sent.


我有点担心New main file also not found. returning..Referrer file contents: null的含义,但无法通过Google找到关于这两个名称的任何信息。

注意:我们开始不使用Google Play服务,因为它说只需要广告,我们将不使用它。我也添加了此内容,但仍然没有任何反应。

最佳答案

解决此问题。

我们已达到300个独特事件的事件极限,因此我发送的所有新事件都无法通过。这就是为什么新的版本ID通过的原因,但是我们没有看到任何事件。一个使用旧事件名称的简单测试会在这个小时前发现。

哦,生活和学习...

10-07 19:26
查看更多