mavenCentral()
into gradle.build file of your application and specify the following relationship in dependencies block:DTDAnalytics
initializer, add the DTDMessaging
initializer.DTDPushListener
to receive information about the DTDMessaging
functioning.DTDMessaging.startPushService()
method to activate the Messaging module.DTDMessaging
moduleDTDMessaging
DTDMessaging.initialize(Context context)
DTDMessaging.startPushService()
isAllowed
current state.DTDMessaging.pushNotificationsAllowed
= true or falseisAllowed
(true or false) status to the server.
isAllowed
flag status is stored in the SDK.DTDMessaging.setIntent(Intent intent)
<meta-data android:name="com.devtodev.push.default_small_icon" android:resource="@drawable/smallIcon" />
<meta-data android:name="com.devtodev.default_small_icon_color" android:resource="@color/colorPrimary" />
<meta-data android:name="com.devtodev.push.default_large_icon" android:resource="@mipmap/largeIcon" />
DTDMessaging.getToken()
firebaseToken
).DTDMessaging.processPushNotification(Context context, RemoteMessage remoteMessage)
DTDMessaging.setPushListener(DTDPushListener pushListener)
DTDPushListener pushListener
) - sets a listener for push notification event trapping.DTDPushListener
Interface MethodsonPushServiceRegistrationSuccessful(String deviceId)
firebaseToken
). onPushNotificationReceived(Map<String, String> message)
onPushNotificationOpened(DTDPushMessage pushMessage, @Nullable DTDActionButton actionButton)
pushMessage
and actionButton
if they were tapped.DTDPushMessage
).getData()
systemId
getTitle(context:Context)
body
group
getSound(context: Context)
getSoundName()
tag
color
bigPicture
actionType
actionString
getIcon(context: Context, userIcon: Int)
largeIcon
actions
isApiSource
DTDActionButton
)Id
actionString
actionType
DTDActionType
value.
icon
isBackground
text