无法在 Localytics 中打开会话

发布于 2024-12-01 17:18:54 字数 784 浏览 3 评论 0原文

在我的应用程序中,我使用 Localytics 跟踪一些事件。事件已得到正确跟踪,但过去几天不再跟踪所有事件。我将 IS_LOGGABLE 设置为 true,因此我在 LogCat 中看到了一些消息。当我调用 localyticsSession.open() 时,我看到以下消息:

磁盘上已存在最大会话数 - 不写入任何新会话 会话,直到旧会话被清除。尝试调用 upload() 来 存储更多会话。

但是调用 localyticsSession.upload() 然后立即再次调用 open() 会显示相同的消息。当我尝试调用 tagevent() 时,我会得到

由于会话未打开,标签未写入

目前我无法打开会话,无法清除旧会话,也无法写入标签。

对于 open() upload() tagevent() close() 的完整周期,我收到以下消息:

磁盘上已存在最大会话数 - 不写入任何新会话 会话,直到旧会话被清除。尝试调用 upload() 来 存储更多会话。

SessionHandler 收到 MESSAGE_UPLOAD

UploadHandler 已收到 MESSAGE_UPLOAD

处理程序收到 MESSAGE_UPLOAD_COMPLETE

处理程序收到 MESSAGE_TAG

由于会话未打开,标签未写入

会话未打开,因此无法关闭。

In my app I track some events with Localytics. The events were tracked properly, but not all events are tracked anymore the last couple of days. I set the IS_LOGGABLE to true, so I see some messages in LogCat. When I call localyticsSession.open() I see this message:

Maximum number of sessions are already on disk--not writing any new
sessions until old sessions are cleared out. Try calling upload() to
store more sessions.

But calling localyticsSession.upload() and then immidiately call open() again will show me the same message. When I try to call tagevent(), I'll get

Tag not written because the session was not open

At the moment I'm not able to open a session, I'm not able to clear the old sessions and I'm not able to write a tag.

For a complete cycle of open() upload() tagevent() close() I get these messages:

Maximum number of sessions are already on disk--not writing any new
sessions until old sessions are cleared out. Try calling upload() to
store more sessions.

SessionHandler received MESSAGE_UPLOAD

UploadHandler Received MESSAGE_UPLOAD

Handler received MESSAGE_UPLOAD_COMPLETE

Handler received MESSAGE_TAG

Tag not written because the session was not open

Session was not open, so close is not possible.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

几度春秋 2024-12-08 17:18:55

(编辑:问题已解决,已更新解决方案)

发生这种情况是因为由于 Android 中的此错误,上传者无法从 Sqlite 数据库中获取预期的数据:
http://code.google.com/p/android/issues/detail ?id=3707

因此,上传者无法上传数据。这不会导致任何数据被删除,因此达到了我们对存储会话数量的限制。这就是您无法打开任何进一步会话的原因。

我们昨晚更新了我们的库并进行了修复,可以在我们的下载网站上找到它:
http://wiki.localytics.com/

-- 亨利

(Edit: Problem solved, updated with solution)

This is happening because the uploader was not getting the data it expected out of the Sqlite database because of this bug in Android:
http://code.google.com/p/android/issues/detail?id=3707

As a result, the uploader wasn't able to upload data. This causes none of the data to be deleted so our limit on the number of stored sessions was being reached. This is why you are unable to open any further sessions.

We updated our library last night with a fix and it is available on our download site:
http://wiki.localytics.com/

-- Henry

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文