mirror of
https://github.com/fergalmoran/chrometophone.git
synced 2026-01-06 17:04:05 +00:00
Set device type in case of update
This commit is contained in:
@@ -159,6 +159,8 @@ public class RegisterServlet extends HttpServlet {
|
|||||||
} else {
|
} else {
|
||||||
// update registration id
|
// update registration id
|
||||||
device.setDeviceRegistrationID(reqInfo.deviceRegistrationID);
|
device.setDeviceRegistrationID(reqInfo.deviceRegistrationID);
|
||||||
|
// must update type, as this could be a C2DM to GCM migration
|
||||||
|
device.setType(deviceType);
|
||||||
device.setRegistrationTimestamp(new Date());
|
device.setRegistrationTimestamp(new Date());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user