When I re-register on the device, the old device id seems so remain in the cloud.
Now there are two (or more) device ids for the same device in the cloud.
When a notification is sent with deviceKey=null (to all users) the notification is received multiple times on devices that have been re-registered.
When I send explicitly to a deviceKey I do not know which device has been re-registered, so I will also send multiple notifications to the same device.
It would be good if on re-registration the old device id would be deleted from the cloud.
Any hints how to handle situations with re-registered devices?
Is there any way to uniquely identify a device? Then we could send the unique device id together with the push device id to our server, and then replace the existing push device id for the unique device id on the server.