@hsaadawy/ngx-chat
Version:
18 lines (17 loc) • 592 B
TypeScript
import { JID } from '@xmpp/jid';
import { ChatService } from './chat-service';
export declare class ChatBackgroundNotificationService {
protected chatService: ChatService;
private enabled;
constructor(chatService: ChatService);
enable(): void;
disable(): void;
private requestNotificationPermission;
private receivedDirectMessage;
private receivedGroupMessage;
protected customizeGroupMessage(sender: JID, message: string): Promise<{
body: string;
}>;
private shouldDisplayNotification;
private supportsNotification;
}