Android Question Remove push id

Discussion in 'Android Questions' started by fishwolf, Jul 5, 2015.

  1. fishwolf

    fishwolf Active Member Licensed User

    I have see that when remove and reinstall the same app (not from market) into the same device, google get me a different gcm id.

    the problem is that on push server i send 2 push message for the same device.

    can i know when the old gcm id is removed with app?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Are you using B4X Push Server? It handles such cases automatically as it tracks the last time each token was registered.

    This way it avoids sending messages to tokens that are most probably invalid.
     
  3. fishwolf

    fishwolf Active Member Licensed User

    Yes, i use B4X Push Server, but if you remove the app and install again, push server store 2 different cgm id
    it don't manage the canonical id
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    There is no automatic way to merge the ids. After three days (you can change it if you like) the old id will be removed.
     
Loading...