mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
This is the fix for the enrollment error occurred when a user enrols android device to EMM 2.2.0 in FCM enabled environment if whitelist policy is enforced.
Please find the GitHub issue from [1] [1]: https://github.com/wso2/product-iots/issues/1827
This commit is contained in:
parent
3ca4672ac6
commit
8fbe1a4234
@ -64,7 +64,9 @@ public class FCMNotificationStrategy implements NotificationStrategy {
|
|||||||
if (NOTIFIER_TYPE_FCM.equals(config.getType())) {
|
if (NOTIFIER_TYPE_FCM.equals(config.getType())) {
|
||||||
Device device = FCMDataHolder.getInstance().getDeviceManagementProviderService()
|
Device device = FCMDataHolder.getInstance().getDeviceManagementProviderService()
|
||||||
.getDeviceWithTypeProperties(ctx.getDeviceId());
|
.getDeviceWithTypeProperties(ctx.getDeviceId());
|
||||||
|
if(getFCMToken(device.getProperties()) != null) {
|
||||||
this.sendWakeUpCall(ctx.getOperation().getCode(), device);
|
this.sendWakeUpCall(ctx.getOperation().getCode(), device);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (log.isDebugEnabled()) {
|
if (log.isDebugEnabled()) {
|
||||||
log.debug("Not using FCM notifier as notifier type is set to " + config.getType() +
|
log.debug("Not using FCM notifier as notifier type is set to " + config.getType() +
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user