Skip to content

feat(notifications): add launch + activationType to ToastNotification…#87

Open
PoliteZappah wants to merge 1 commit into
overwolf:masterfrom
PoliteZappah:feature/ow-6562-toast-launch-activation-type
Open

feat(notifications): add launch + activationType to ToastNotification…#87
PoliteZappah wants to merge 1 commit into
overwolf:masterfrom
PoliteZappah:feature/ow-6562-toast-launch-activation-type

Conversation

@PoliteZappah

Copy link
Copy Markdown

…Params and ToastNotificationButton

The Overwolf runtime already supports embedding a launch URI and activationType in the underlying toast XML (matching the Windows toast schema), but the TypeScript types did not expose these fields.

launch (string URI) + activationType ('protocol'|'foreground'|'background') are added as optional fields on both ToastNotificationParams and ToastNotificationButton.

With activationType: 'protocol' and a URI matching the app's registered scheme, the OS invokes the URI via
overwolf.extensions.onAppLaunchTriggered (origin: 'urlscheme') when the user clicks the toast — including from the Windows notification center (Action Center) and on a cold start, which the in-process onToastInteraction event cannot reach.

Motivated by OW-6562 / CF-10763.

…Params and ToastNotificationButton

The Overwolf runtime already supports embedding a `launch` URI and
`activationType` in the underlying toast XML (matching the Windows
toast schema), but the TypeScript types did not expose these fields.

`launch` (string URI) + `activationType` ('protocol'|'foreground'|'background')
are added as optional fields on both `ToastNotificationParams` and
`ToastNotificationButton`.

With `activationType: 'protocol'` and a URI matching the app's
registered scheme, the OS invokes the URI via
`overwolf.extensions.onAppLaunchTriggered` (origin: 'urlscheme') when
the user clicks the toast — including from the Windows notification
center (Action Center) and on a cold start, which the in-process
`onToastInteraction` event cannot reach.

Motivated by OW-6562 / CF-10763.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant