//It is called when push token is received successfully
PushManager.PushTokenReceived = (pushToken) => {
//pushToken - the string contains the push token
//It is called when there is an error in push token delivery.
PushManager.PushTokenFailed = (error) => {
//error - the error string. This function will be called when push token have not been obtained.
//It is called when push notification is received.
PushManager.PushReceived = (PushType type, IDictionary<string, string> pushAdditionalData) => {
//type - type of the push message
//params - IDictionary<string, string> with the custom user parameters form the push message
//It is called when push notification is opened.
PushManager.PushOpened = (PushMessage pushMessage, ActionButton actionButton) => {
//pushMessage - DevToDev.PushMessage. Represents toast notification message
//actionButton - DevToDev.ActionButton. Windows 10 only!
//Represents toast button that was clicked. Could be null if toast body was clicked
DevToDev.PushManager.Initialize();