0.5.0 • Published 5 years ago

p10-notifications v0.5.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Notification SDK

Description

Notification SDK provides apis to receive, dismiss notifications.

How to Use

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.

NON-REACT applications

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.

REACT applications

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"