Notification SDK provides apis to receive, dismiss notifications.
This SDK can be used in React as well as javascript applications, however to use sdk in any of the two environment you need to configure webpack.
For simple javascript applications, configure webpack output as follows:
- configure webpack output as follows
output:{ path:'./', filename: 'notifications.js', libraryTarget: 'var', library: 'notifications' }
- Run webpack command from terminal.
- Use notifications.js file in you application.
For simple javascript applications, configure webpack output as follows:
- configure webpack output as follows
output:{ path:'./', filename: 'notifications.js', libraryTarget: 'commonjs2', library: 'notifications' }
- Run webpack command from terminal.
- Install in the requried application as npm install "path-to-the-folder"