Is it possible to detect Android app uninstall?

后端 未结 7 990
清酒与你
清酒与你 2020-11-22 11:18

My app is using Google\'s C2DM (push notification) to notify users about new activity from friends. Once they install the app I register the device with C2DM servers and sto

7条回答
  •  梦谈多话
    2020-11-22 12:05

    I have some points to tell you ,

    1. Android community recommends you to use GCM instead of C2DM as it's no longer available.
    2. In android there is no way for applications to get itself notified that app is getting uninstalled.
    3. in GCM if you want to stop sending messages to uninstalled apps you can refer this

    When you send messages to GCM from your server you will get response string.In that if you are getting error as "NotRegistered, you should remove the registration ID from your server database because the application was uninstalled from the device or it does not have a broadcast receiver configured to receive com.google.android.c2dm.intent.RECEIVE intents."

提交回复
热议问题