A JSON object that specifies the success and error callback functions.

updatesToastRegistration(registrationId, channel, tags, template, options, callback)
Updates an existing template registration with a new toast template. For more information, see Toasts for Windows Phone 8.

Parameters

Name

Type

Argument

Description

registrationId

string

The registration identifier.

channel

string

The device channel URI.

tags

string | array

The tags for the registration.

template

object

The body template of the registration.

Name

Type

Description

text1}

string

Value of the Text1 element.

text2

string

Value of the Text2 element.

param

string

Optional parameters supplied to the toast. (Only for Windows Phone version 7.5 or later.)

lang

string

Value of the language of the binding element.

optionsOrCallback

object

<optional>

The request options or callback.

Name

Type

Argument

Description

headers

object

<optional>

The mpns headers to include.

callback

object

A JSON object that specifies the success and error callback functions.

A JSON object that specifies the success and error callback functions.

Remarks

The mpns object is used to send push notifications to Windows Phone 8 and Windows Phone 8.1 Silverlight apps. To send push notifications to a Windows Phone Store 8.1 app, you must use the wns object. MPNS is not supported by Notification Hubs for Windows Phone Store 8.1 apps.