global-alter-sdk
v1.0.0
Published
A simple notification SDK for showing alerts across your application.
Downloads
7
Readme
Global Notification SDK
A simple notification SDK for showing alerts across your application.
Installation
npm install global-alter-sdkUsage
import { GlobalNotification } from 'global-alter-sdk';
const notification = GlobalNotification.init({
domain: 'your-domain.com',
backendUrl: 'https://your-api.com/notifications',
onNotificationShown: (notification) => {
console.log('Notification shown:', notification);
},
onNotificationDismiss: () => {
console.log('Notification dismissed');
}
});
// Show notification
notification.showNotification();