Package io.antmedia.pushnotification
Interface IPushNotificationService
- All Known Implementing Classes:
PushNotificationServiceCommunity
public interface IPushNotificationService
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
-
Field 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
-
BEAN_NAME
- See Also:
-
-
Method Details
-
sendNotification
Send push notifcaiton according to service name- Parameters:
topic
-jsonMessage
-serviceName
- : fcm or apn- Returns:
-
sendNotification
Send notification to both services if they are enabled- Parameters:
topic
-jsonMessage
-- Returns:
-
sendNotification
Send notification according to the subscriberIds- Parameters:
subscriberIds
-jsonMessage
-- Returns:
-
sendNotification
Result sendNotification(List<String> subscriberIds, org.json.simple.JSONObject jsonMessage, String serviceName) Send notification according to the subscriberIds and service- Parameters:
subscriberIds
-jsonMessage
-- Returns:
-