Unregister a device from GCM using registration Id in Android

后端 未结 2 1192
夕颜
夕颜 2020-12-08 22:33

I have a list of GCM registered users and their corresponding registration Ids in a database table, and I actually want to unregister a user whenever he/she is deleted from

2条回答
  •  时光说笑
    2020-12-08 22:56

    unregister() is now deprecated:

    https://developers.google.com/android/reference/com/google/android/gms/gcm/GoogleCloudMessaging.html#unregister()

    Quoting the docs you should call:

    Instead use InstanceID.deleteToken() or InstanceID.deleteInstanceID().
    

提交回复
热议问题