检查应用程序是否在未存储唯一 ID 的情况下重新安装
当我的应用程序首次安装时,用户可以获得 5 个免费消耗品。消耗品用完后,用户可以选择购买 5 种额外的消耗品。有没有办法检查该应用程序是否以前安装过。我不希望用户卸载并重新安装才能再次获得 5 个免费消耗品。
我正在使用的插件 in_app_purchase 允许 检索过去的消耗品,所以我想我可以让用户在启动时购买免费的消耗品,如果安装了应用程序,我可以稍后检索该消耗品,但我不希望用户执行任何额外的步骤来使用第一次使用应用程序。
我更喜欢不需要存储唯一 ID 的解决方案,因为这需要后端代码,并且在 iOS 上不可能获取唯一 ID。
When my app is first installed, the user gets 5 free consumables. After the consumables are finished, the user then has the option to get purchase 5 additional consumables. Is there a way to check if the app was previously installed. I don't want the user to uninstall and reinstall to get 5 free consumables again.
The plugin I'm using, in_app_purchase, allows retrieval of past consumables, so I thought I could have the user purchase a free consumable on startup, which I could later retrieve if the app is installed, but I don't want the user to go through any extra steps to use the app for the first time.
I would prefer a solution that doesn't require storing a unique id because that would require backend code and getting a unique id isn't possible on iOS.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论