From 9cd578bb7698f24462a5ed80f5fdc3fd61d69949 Mon Sep 17 00:00:00 2001 From: jasonpeltzer <47006198+jasonpeltzer@users.noreply.github.com> Date: Mon, 6 May 2019 15:58:29 -0400 Subject: [PATCH] Update DeviceController.php When a GCM Device is initially registered it's status is set to active, if you unregister it, the status gets set to inactive, however re registering does not reset the status to active. --- Controller/DeviceController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Controller/DeviceController.php b/Controller/DeviceController.php index 096eb4b..e1e1c7b 100644 --- a/Controller/DeviceController.php +++ b/Controller/DeviceController.php @@ -173,6 +173,7 @@ public function registerGCMRegistrationIDAction(ParamFetcher $paramFetcher) $device->setAppVersion($appVersion); $device->setAppId($appId); $device->setState(Device::STATE_PRODUCTION); + $device->setStatus(DeviceStatus::DEVICE_STATUS_ACTIVE); $deviceManager->saveDevice($device); return null;