java.lang.Object | |
↳ | com.neomades.notification.push.PushMessage |
Push Notification message. The push notification message is built from the message the application received from a platform push server.
The application server will have to provide the notification message to the push servers corresponding to the operating system the application targets (for example to target Android and iOS devices, the server will have to send notifications to Google and Apple push servers). Each push server expects a specific format for its notifications. The following section describes the format for each OS.
Note that the configuration of the Android project is done by NeoMAD, the only things you need to provide is the google-services.json file which can be obtained in the Firebase portal of the application. The path of the file must be set in the URS:
<pushservice googleServices="path_to_google_services_json"/>
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PushMessage(String payload)
This constructor is deprecated.
Since NeoMAD 4.8.4. No replacement.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getAlertAction()
Returns the message title.
| ||||||||||
String |
getAlertMessage()
Returns the message content.
| ||||||||||
int |
getBadge()
This method is deprecated.
Since NeoMAD 4.8.4. No replacement.
| ||||||||||
String |
getData()
Returns the message data.
| ||||||||||
String |
getPayload()
This method is deprecated.
Since NeoMAD 4.8.4. No replacement.
| ||||||||||
String |
getSound()
This method is deprecated.
Since NeoMAD 4.8.4. No replacement.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
This constructor is deprecated.
Since NeoMAD 4.8.4. No replacement.
Build a PushMessage using the payload.
payload | the payload of the message |
---|
Returns the message title.
On Android platform, it always returns null
if called in
onPushMessageReceived(PushMessage)
after a user clicks on
the notification in the notification center.
Returns the message content.
On Android platform, it always returns null
if called in
onPushMessageReceived(PushMessage)
after a user clicks on
the notification in the notification center.
This method is deprecated.
Since NeoMAD 4.8.4. No replacement.
Returns the message badge.
This method is deprecated.
Since NeoMAD 4.8.4. No replacement.
Returns the original payload message received from Operating System Server.
This method is deprecated.
Since NeoMAD 4.8.4. No replacement.
Returns the message sound.