1

我们有 Android 应用程序,我们应该通过我们的一些合作伙伴分发它,并将预加载到这些设备上。

同时,我们需要对每个合作伙伴有多少设备在使用我们的应用程序进行问责。

一旦我们发布了新的应用程序版本,这些设备可能会更新,也可能不会更新,我们仍需要对每个合作伙伴使用我们的应用程序的设备数量负责。

我们被告知要在"channel code"我们的应用程序中添加一个,但我们认为这不能完成,因为一旦应用程序更新,频道代码就会丢失。此外,这意味着必须分发“不同的 .apk”(或定制的 apk),这是我们不惜一切代价想要避免的事情。

我们可以使用 Google Analytics,但不会给我们准确的数字,因为 GA 还包括通过 Google Play 安装我们应用程序的设备。

因此,任何帮助解释我们如何添加该跟踪机制将不胜感激。

4

2 回答 2

1

我不确定这是否符合这一点,但我通过在每次启动我的应用程序时发送 DeviceID 来跟踪设备。

TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
String txtguid =  tm.getDeviceId();

我使用预定义的 URL 发送 DeviceID 和一些附加信息(版本代码、时间戳等),然后存储数据。我还添加了一个自定义异常处理程序并将任何崩溃的堆栈跟踪发送到我的服务器。适合我

于 2015-07-16T08:28:18.857 回答
1

If you are only interested on knowing the number of devices using your app at any moment, and the total usages over time GA is a good way to go. You need only to create a GA session at application start as in:GA session management.

Note that before that you should get and configure you GA account as in: GA account for real time events.

于 2015-07-16T08:22:26.077 回答