简体   繁体   English

如何检查应用程序是否已从android / iphone设备上卸载

[英]How to check if application is uninstalled from android/ Iphone device

Is there any way of checking from server if application on android phone or Iphone is uninstalled. 是否可以从服务器检查是否卸载了Android Phone或Iphone上的应用程序。 In my application I want to delete records from Database if application is uninstalled from device. 在我的应用程序中,如果从设备上卸载了应用程序,我想从数据库中删除记录。

You can do that with the help of Push Notification Services . 您可以借助Push Notification Services来做到这一点。

Android return “error”:“NotRegistered” when you try to push notification on the device using GCM 3.0 or later. 当您尝试使用GCM 3.0或更高版本在设备上推送通知时,Android返回“error”:“NotRegistered” Check the answer here 这里检查答案

I'm not about iOS , Windows Phone and other mobile devices but I'm sure theirs services for push notification will definitely return such data on failure. 我不是关于iOSWindows Phone和其他移动设备的,但是我确定他们的推送通知服务肯定会在失败时返回此类数据。

Thats the only possible way to achieve what you want as far as I know. 就我所知,那是实现您想要的唯一途径。

There is no way you can achieve this on iOS. 您无法在iOS上实现此目标。

For Android please check, Is it possible to detect Android app uninstall? 对于Android,请检查是否可以检测到Android应用程序卸载?

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

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