Table of Contents |
---|
Customization of the Notification Area
...
When Push Notification Module is enabled via RelatedDigital.setIsPushNotification()
, the token information is written to RMC servers. This token is saved as "anonymous". In order to match this token with a user, an identifier information for the user (KEY_ID or EMAIL) should be sent to RMC.
In order the data that you sent to be loaded to RMC panel correctly, you should use the same reference value (KEY_ID* veya E-Mail) that you use in your RMC account when sending data via mobile channel.
*KEY_ID: It is the ID that you use to make a user unique in your system like CRM id, userId, customerId, accountId.
...
Info |
---|
If you do not see a user match in RMC, please get in contact with RMC support team and ask to activate the FLAG of the related appKey. |
Push Notification Click Report and Directing
...
Push Message History
You can have the anonymous push messages sent in the last 30 days as shown below.
...
Code Block | ||
---|---|---|
| ||
PushMessageInterface pushMessageInterface = new PushMessageInterface() {
@Override
public void success(List<Message> pushMessages) {
// You can write your code here by using pushMessages
}
@Override
public void fail(String errorMessage) {
Log.e("Past Notifications", errorMessage)
}
};
RelatedDigital.getPushMessages(activity, pushMessageInterface); |
If you want to save and get the notifications based on user IDs you must set the usedID value (email, telephone number, etc) via the method below:
Kotlin
Code Block | ||
---|---|---|
| ||
RelatedDigital.setNotificationLoginID("user_id", context) |
Java
Code Block | ||
---|---|---|
| ||
RelatedDigital.setNotificationLoginID("user_id", context); |
After setting the userID like the one above, the notifications will be saved with that user ID. You can get the notifications sent to the user who is logged-in in your application by using the getPushMessagesWithID()
method:
Kotlin
Code Block | ||
---|---|---|
| ||
val pushMessageInterface: PushMessageInterface = object : PushMessageInterface {
override fun success(pushMessages: List<Message>) {
// Make your implementation by using pushMessages here:
}
override fun fail(errorMessage: String) {
Log.e("Past Notifications", errorMessage)
}
}
RelatedDigital.getPushMessagesWithID(activity, pushMessageInterface) |
Java
Code Block | ||
---|---|---|
| ||
PushMessageInterface pushMessageInterface = new PushMessageInterface() {
@Override
public void success(List<Message> pushMessages) {
// Make your implementation by using pushMessages here:
}
@Override
public void fail(String errorMessage) {
Log.e("Past Notifications", errorMessage)
}
};
RelatedDigital.getPushMessagesWithID(activity, pushMessageInterface); |
...
Push Message Content
Veri Tipi | Değişken | Açıklama |
---|---|---|
String | mediaUrl | Photo, video url |
String | altUrl | Alternate URL |
String | campaignId | Campaign ID |
String | pushId | Notification ID |
String | url | Campaign URL |
String | message | Notification Message |
String | title | Notification Title |
String | sound | Notification Sound |
PushType | pushType | Notification Type |
Map<String, String> | params | Custom Parameters |
...