Package io.antmedia.pushnotification
Class PushNotificationServiceCommunity
java.lang.Object
io.antmedia.pushnotification.PushNotificationServiceCommunity
- All Implemented Interfaces:
IPushNotificationService
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.antmedia.pushnotification.IPushNotificationService
IPushNotificationService.PushNotificationServiceTypes -
Field Summary
FieldsFields inherited from interface io.antmedia.pushnotification.IPushNotificationService
BEAN_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsendNotification(String topic, org.json.simple.JSONObject jsonMessage) Send notification to both services if they are enabledsendNotification(String topic, org.json.simple.JSONObject jsonMessage, String serviceName) Send push notifcaiton according to service namesendNotification(List<String> subscriberIds, org.json.simple.JSONObject jsonMessage) Send notification according to the subscriberIdssendNotification(List<String> subscriberIds, org.json.simple.JSONObject jsonMessage, String serviceName) Send notification according to the subscriberIds and service
-
Field Details
-
MESSAGE_TO_USE_ENTERPRISE_EDITION
- See Also:
-
-
Constructor Details
-
PushNotificationServiceCommunity
public PushNotificationServiceCommunity()
-
-
Method Details
-
sendNotification
public Result sendNotification(String topic, org.json.simple.JSONObject jsonMessage, String serviceName) Description copied from interface:IPushNotificationServiceSend push notifcaiton according to service name- Specified by:
sendNotificationin interfaceIPushNotificationServiceserviceName- : fcm or apn- Returns:
-
sendNotification
Description copied from interface:IPushNotificationServiceSend notification to both services if they are enabled- Specified by:
sendNotificationin interfaceIPushNotificationService- Returns:
-
sendNotification
Description copied from interface:IPushNotificationServiceSend notification according to the subscriberIds- Specified by:
sendNotificationin interfaceIPushNotificationService- Returns:
-
sendNotification
public Result sendNotification(List<String> subscriberIds, org.json.simple.JSONObject jsonMessage, String serviceName) Description copied from interface:IPushNotificationServiceSend notification according to the subscriberIds and service- Specified by:
sendNotificationin interfaceIPushNotificationService- Returns:
-