Permalink
Browse files

Added category in aps payload

  • Loading branch information...
Miggets7 committed Oct 1, 2018
1 parent 6c35454 commit e0d60f72cbaf93ae6ecb7261ef93c720b7158032
@@ -398,7 +398,7 @@ protected static Message buildFCMMessage(long id, PushNotificationMessage pushMe
// Use alert dictionary for apns
// https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/PayloadKeyReference.html
apsBuilder.setAlert(ApsAlert.builder().setTitle(pushMessage.getTitle()).setBody(pushMessage.getBody()).build())
.setSound("default");
.setSound("default").setCategory("openremoteNotification");
webpushConfigBuilder.setNotification(new WebpushNotification(pushMessage.getTitle(), pushMessage.getBody()));
}

0 comments on commit e0d60f7

Please sign in to comment.