明确标识 Android 用户以提供限时许可证

发布于 2025-01-07 04:11:11 字数 394 浏览 2 评论 0原文

我想发布一个具有 2 年时间支持的 Android 应用程序(这是由于 API 成本)。 2 年后,用户必须再次购买该应用程序(如果他愿意)。

至少有 3 个问题:

  1. 我希望它对用户来说是简单且轻松的:所以没有“注册表单”(如果可能的话)。
  2. 该应用程序应该可以在与同一 Google 帐户连接的其他设备上运行(与每个付费应用程序一样)。
  3. 如果用户出售其设备,该应用程序不应运行:因此使用设备的 IMEI 并不是一个很好的解决方案。

我认为最终的解决方案是明确识别用户,但问题是:如何做到这一点? 您认为 AccountManager 可以作为解决方案吗?

请注意,该应用程序需要连接到我的服务器才能工作,因此该解决方案可以在客户端和/或服务器端实现。

I would like to publish an Android app with 2-years time support (this is due to API costs). After 2 years, the user has to buy the app again (if he wants).

There are at least 3 problems:

  1. I want it to be easy and effortless for the user: so no "registration form" (if possible).
  2. The app should work on other devices connected with the same Google account (as every payed app).
  3. The app should not work if the user sells his device: so using device's IMEI isn't a very good solution.

I think that the definitive solution would be univocally identifying the user, but the question is: how to do that?
Do you think that AccountManager could be a solution?

Note that the app needs to connect to my server in order to work, so the solution can be implemented both client and/or server side.

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

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

发布评论

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

评论(2

小草泠泠 2025-01-14 04:11:11

您可以尝试使用用户的电话号码来唯一识别该用户。这就是 Wavesecure 所做的。

这确实有一些影响:

a) 您的应用程序无法在仅支持 WiFi 的平板电脑上运行。
b) 您必须为用户提供一种迁移电话号码的方法,以防他们碰巧更换电话。

You can try to uniquely identify the user using his/her phone number. This is what Wavesecure does.

This does have some implications:

a) your app cannot work on a wifi only tablet.
b) you will have to provide a way for users to migrate phone numbers in case they happen to change phones.

掩于岁月 2025-01-14 04:11:11

你说:

该应用应该可以在使用同一 Google 帐户(与每个付费应用一样)连接的其他设备上运行。

使用谷歌帐户。
当应用程序启动时,让他选择一个 Google 帐户并在服务器端保存帐户 ID(电子邮件地址)。
还要确保用户可以更改引用的帐户,只要您只允许每个用户一个帐户,就不应该有任何区别。

理想情况下,随着时间的推移,您可能希望跟踪每个用户的活动安装,并限制设备数量(型号名称、IMEI(如果可用)、操作系统版本等)以防止虚假帐户共享。但这是你可以稍后做的事情。

You said that:

The app should work on other devices connected with the same Google account (as every payed app).

Use the google account.
When the app starts have him choose a google account and save the account ID (the email address) server side.
Also make sure the user can change the referenced account, it should not make any difference, as long as you allow just one account per user.

Ideally, as time passes by, you may want to track the active installations for each user, and limit the number of devices (model name, IMEI if available, OS version etc) to prevent fake account sharing. But that's something you can do later.

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