1.0.6 • Published 6 years ago

onesignal-custom v1.0.6

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

Onsignal

How to setup

npm install --save onesignal-custom

With ReactJS In src/index.js

import { OnsignalEmp } from 'onesignal-custom' exprort const onesignal = new OnsignalEmp()

onesignal.setOptions({ app_id: "APP_ID", basic_key: "API_AUTH_ID" }) ReactDOM.render(...);

In component src/App.js

class App extends Component { componentDidMount(){

<!-- View list notifications -->

onsignal.viewNotifications({ limit:10, offset:0 }).then(r=>console.log(r)) .catch(err=>console.log(err)) } render() { return (

With Angular project

Allow "regeneratorRuntime" In src/polyfills.ts

import "babel-polyfill";

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago