简体   繁体   English

Android-如果用户卸载应用程序,该如何处理

[英]Android - How to handle if user uninstall the app

I have create a app where which have a setup which is equal to many other app. 我创建了一个应用程序,其中的设置与许多其他应用程序相同。

  1. Open app and create a user, where phonenumber is a part of the information. 打开应用并创建一个用户,其中电话号码是信息的一部分。
  2. Everyone with the app would see there phonebook on a view 使用该应用程序的每个人都会在视图上看到电话簿
  3. If there is a match between a phonebookumber and a indication if a contact person do have a create a account in the app. 电话簿号码和联系人是否在应用程序中创建帐户的指示之间是否匹配。

If a user have uninstall the app the match in (3) show be remove. 如果用户已卸载应用程序,则将删除(3)中的匹配项。

The Viber app shows who you should be able to call but I guess it need to handle situation where users have uninstall the app, for removing the match. Viber应用程序显示您应该可以呼叫谁,但我想它需要处理用户已卸载应用程序以删除匹配项的情况。

Does any one have ideas how this is handle in other apps? 是否有人对其他应用程序的处理方式有所了解?

To make sure that you always have a list of user and profile numbers on your server I would implement: 为了确保您始终在服务器上拥有用户和配置文件编号的列表,我将实现:

  1. When the user installs the app, a notification is send to the server which contains the number of the current phone/profile. 当用户安装该应用程序时,将向服务器发送一条通知,其中包含当前电话/配置文件的号码。
  2. Several times a day the app sends a notification to server if the app is still installed on a phone with the selected phone number. 如果该应用仍安装在具有所选电话号码的电话上,则该应用一天几次发送通知到服务器。

By this, the server should more or less know, which accounts are linked to which phone numbers at each given moment. 这样,服务器应该或多或少地知道在每个给定的时刻哪个帐户与哪个电话号码关联。 2. is necessary because it is not possible to start any services when the app is removed. 2.是必需的,因为删除该应用程序后无法启动任何服务。 You could start also start 2. by an broadcast receiver when the phone is connected to a wifi. 当手机连接到wifi时,也可以通过广播接收器启动2.。

Then, if the user opens your app and checks out which other contacts from the phonebook have a profile, your application could check that with the server. 然后,如果用户打开您的应用程序并检查电话簿中的哪些其他联系人具有配置文件,则您的应用程序可以通过服务器进行检查。

You should implement services for these tasks. 您应该为这些任务实施服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM