FCM token invalidated when app is updated

一个人想着一个人 提交于 2019-12-12 01:28:45

问题


I am testing FCM within my Xamarin.Forms.Droid app. I have a small problem though: Whenever I update my app (build a new version and install it to my phone via Xamarin Studio), the registration id is invalid.

When I reinstall the app, I get a new registration id which works perfectly fine. But, once again, when I update my app, the registration id stays the same but FCM does not longer accept it and returns this:

    {
  "multicast_id": 7779985059157799056,
  "success": 0,
  "failure": 1,
  "canonical_ids": 0,
  "results": [
    {
      "error": "NotRegistered"
    }
  ]
}

Anyone knows how to fix this?

来源:https://stackoverflow.com/questions/41686027/fcm-token-invalidated-when-app-is-updated

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!