Как сообщить серверу что приложение удалено?


#1

Всем доброго дня!
Возник такой вопрос если пользователь удаляет приложение с устройства - можно ли об этом послать уведомление серверу где хранятся данные приложения.

Может есть идеи?


#2

Detecting iOS uninstalls

  • Detecting uninstalls on iOS is much simpler, as APNs (Apple Push Notification service) has a feedback Service where Apple reports any device token that is no longer active on the user’s device.
  • Send a blank push notification to the APNs keeping the payload empty.
  • The APNs Feedback Service allows you to discover device tokens that are no longer active.
  • As a developer, poll the APNs Feedback Service and detect which devices are invalid.
  • Once detected, these users can be marked as uninstalled.

#3

Благодарю! То что нужно.


#4

Detecting Android uninstalls

  • Send a silent push notification to the GCM (Google Cloud Messaging) server. Keep the push notification payload empty, as you don’t want the empty message to pop on the user’s device.
  • The GCM server will send a message or query the device.
  • The GCM client will receive the message and will query the Package Manager about whether there are broadcast receivers that are configured to receive it.
  • This message returns a false flag.
  • The GCM client will then inform the GCM server that the application has been uninstalled.
  • The GCM will return a “ NotRegistered ” error back which indicates that the application has been uninstalled.

На всякий случай, для комплекта.


#5

Это может коллегам пригодиться. Благодарю!