Skip to content

Commit

Permalink
Merge pull request #1174 from OneSignal/fix/webhook-url-params
Browse files Browse the repository at this point in the history
[Fix] Webhook dismissed not firing, and willDisplay when set from the dashboard
  • Loading branch information
jkasten2 committed Apr 30, 2024
2 parents 749b04a + 0e919a7 commit 4472be3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/shared/helpers/ConfigHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ export class ConfigHelper {
webhooks: {
cors: serverConfig.config.webhooks.corsEnable,
'notification.willDisplay':
serverConfig.config.webhooks.notificationWillDisplayHook,
serverConfig.config.webhooks.notificationDisplayedHook,
'notification.clicked':
serverConfig.config.webhooks.notificationClickedHook,
'notification.dismissed':
Expand Down
2 changes: 1 addition & 1 deletion src/shared/models/AppConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export interface ServerAppConfig {
corsEnable?: boolean;
notificationClickedHook?: string;
notificationDismissedHook?: string;
notificationWillDisplayHook?: string;
notificationDisplayedHook?: string;
};
integration: {
kind: ConfigIntegrationKind;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { IOSNotification } from '../../../../shared/models/OSNotification';
export class OSWebhookPayloadNotificationDismiss
implements IOSWebhookEventPayload
{
readonly event: string = 'notification.dismiss';
readonly event: string = 'notification.dismissed';
readonly notificationId: string;
readonly heading?: string;
readonly content: string;
Expand Down

0 comments on commit 4472be3

Please sign in to comment.