public void PushReceived(IDictionary<string, string> pushAdditionalData) {
//pushAdditionalData - push-notification data that you send to your app
public void PushOpened(DevToDev.PushMessage pushMessage, DevToDev.ActionButton actionButton) {
//pushMessage - DevToDev.PushMessage. Represents toast notification message
//actionButton - DevToDev.ActionButton. Represents toast button that was clicked.
// Could be null if toast body was clicked
public void PushTokenFailed(string error) {
//handle push-notifications error here
public void PushTokenReceived(string pushToken) {
//pushToken - your push token
DevToDev.PushManager.PushReceived = PushReceived;
DevToDev.PushManager.PushOpened = PushOpened;
DevToDev.PushManager.PushTokenFailed = PushTokenFailed;
DevToDev.PushManager.PushTokenReceived = PushTokenReceived;
DevToDev.PushManager.PushNotificationsOptions = (DTDNotificationOptions.Alert | DTDNotificationOptions.Badge | DTDNotificationOptions.Sound | DTDNotificationOptions.Provisional); //Notification options for iOS, optional property
DevToDev.PushManager.PushNotificationsEnabled = true;
// FOR ANDROID ONLY! Optional. Using custom push-notification icons on Android.
// <summary> To set the custom icons to be shown in push-notification on the SDK part,
// use the following methods.
// Attention! Icons which set in the push-notification wizard
// have priority over the icons which set in these methods.</summary>
// <param name="iconName">Icon file from resources of your app
// (from Assets/Plugins/Android/res folder)</param>
//FOR ANDROID ONLY! To set the small icon:
DevToDev.PushManager.CustomSmallIcon = iconName;
//FOR ANDROID ONLY! To set the large icon:
DevToDev.PushManager.CustomLargeIcon = iconName;