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
Fields inherited from interface io.antmedia.pushnotification.IPushNotificationService
BEAN_NAME
-
Constructor Summary
-
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:IPushNotificationService
Send push notifcaiton according to service name- Specified by:
sendNotification
in interfaceIPushNotificationService
serviceName
- : fcm or apn- Returns:
-
sendNotification
Description copied from interface:IPushNotificationService
Send notification to both services if they are enabled- Specified by:
sendNotification
in interfaceIPushNotificationService
- Returns:
-
sendNotification
Description copied from interface:IPushNotificationService
Send notification according to the subscriberIds- Specified by:
sendNotification
in interfaceIPushNotificationService
- Returns:
-
sendNotification
public Result sendNotification(List<String> subscriberIds, org.json.simple.JSONObject jsonMessage, String serviceName) Description copied from interface:IPushNotificationService
Send notification according to the subscriberIds and service- Specified by:
sendNotification
in interfaceIPushNotificationService
- Returns:
-