onesignal-cordova-plugin
Version:
OneSignal is a high volume Push Notification service for mobile apps. In addition to basic notification delivery, OneSignal also provides tools to localize, target, schedule, and automate notifications that you send.
17 lines (16 loc) • 589 B
TypeScript
import { OSNotification } from '../OSNotification';
import { NotificationWillDisplayEvent } from '../NotificationReceivedEvent';
export type NotificationEventName = "click" | "foregroundWillDisplay" | "permissionChange";
export type NotificationEventTypeMap = {
click: NotificationClickEvent;
foregroundWillDisplay: NotificationWillDisplayEvent;
permissionChange: boolean;
};
export interface NotificationClickEvent {
result: NotificationClickResult;
notification: OSNotification;
}
export interface NotificationClickResult {
actionId?: string;
url?: string;
}