Class PushPayload.Builder
java.lang.Object
com.sap.mobile.services.client.push.PushPayload.Builder
- Enclosing interface:
- PushPayload
The generic notification definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAlert properties define the notification message.apns
(ApnsNotification apns) APNS specific notification properties that overrides the PushPayload propertiesThe number to display in a badge on your app’s icon.baidu
(BaiduNotification baidu) Baidu specific notification properties that overrides the PushPayload propertiesbuild()
Custom specific notification properties that overrides the PushPayload propertiesThe data is a key/value map.The data property is a serialized / escape JSON key/value map.gcm
(GcmNotification gcm) FCM specific notification properties that overrides the PushPayload propertiesThe notification priority.Send notification as SMS.When specified, play a sound when the notification arrives on the device.w3c
(W3cNotification w3c) W3C specific notification properties that overrides the PushPayload propertieswns
(WnsNotification wns) WNS specific notification properties that overrides the PushPayload properties
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alert
Alert properties define the notification message. The push provider displays the notification message directly on the device or browser (for W3C Push). See the specific push provider section for additional information. Use plain text for alerts so the notification can be handled by multiple push providers. -
badge
The number to display in a badge on your app’s icon. Specify 0 to remove the current badge, if any. -
sound
When specified, play a sound when the notification arrives on the device. See the push provider for details. -
priority
The notification priority. Allowed values areHIGH
andNORMAL
-
data
The data property is a serialized / escape JSON key/value map. The object is not shown in the notification, but can be used by the mobile app notification handler. Android only support maps/key String value pairs. Other JSON objects will be rejected. -
data
public PushPayload.Builder data(Object data) throws com.fasterxml.jackson.core.JsonProcessingException The data is a key/value map. The object is not shown in the notification, but can be used by the mobile app notification handler. Android only support maps/key String value pairs. Other JSON objects will be rejected.- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
sendAsSms
Send notification as SMS. @deprecated -
apns
APNS specific notification properties that overrides the PushPayload properties -
gcm
FCM specific notification properties that overrides the PushPayload properties -
wns
WNS specific notification properties that overrides the PushPayload properties -
baidu
Baidu specific notification properties that overrides the PushPayload properties -
w3c
W3C specific notification properties that overrides the PushPayload properties -
custom
Custom specific notification properties that overrides the PushPayload properties -
build
-