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) • 605 B
TypeScript
import { OSNotification } from '../OSNotification';
import { NotificationWillDisplayEvent } from '../NotificationReceivedEvent';
export declare type NotificationEventName = "click" | "foregroundWillDisplay" | "permissionChange";
export declare type NotificationEventTypeMap = {
click: NotificationClickEvent;
foregroundWillDisplay: NotificationWillDisplayEvent;
permissionChange: boolean;
};
export interface NotificationClickEvent {
result: NotificationClickResult;
notification: OSNotification;
}
export interface NotificationClickResult {
actionId?: string;
url?: string;
}