我正在开发一个 android 应用程序,我应该在 Localytics 中记录流程(与谷歌分析相同);这意味着用户如何在我的应用程序中浏览。但是我的应用程序中的流程似乎表现得很奇怪,因为某些活动永远无法到达的活动很少。但是这个流程正在记录在 Localytics 中。我准确地遵循了文档,并且事件正在正常登录。如文档所述,我正在每个活动的 onResume() 方法中编写这 3 行代码
onResume()
{
super.onResume();
Localytics.openSession();
Localytics.tagScreen("Splash");
Localytics.upload();
}
现在我对这行代码有几个问题。Localytics.openSession();
1.在每个活动的 onResume() 方法中写入是正确的方法,还是应该在 Splash 活动中只调用一次?2.我是否必须Localytics.closeSession();
在每个活动中编写一个方法才能使 Localytics 正常工作?3. 我在哪里可以找到有关这些方法的作用和方法的详细信息?因为本网站 (www.localytics.com) 的 API 部分没有足够的信息。
My main concern and the priority is to make sure the flow of activities should be logged properly. So if someone has faced the same problem and found a working solution. Please share it here.