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