UNPKG

@flarelane/flarelane-web-sdk

Version:

FlareLane Web SDK

36 lines (22 loc) 649 B
# FlareLane Web SDK Web SDK for FlareLane service. Flarelane lets you build and operate app push and web push with just a few lines of code. This is free and unlimited sending. [FlareLane](https://flarelane.com) **A FlareLane account is required to use the service.** ## Install ```bash npm install --save @flarelane-web-sdk ``` ## Example ```typescript // React, Next.js Example import FlareLane from '@flarelane/flarelane-web-sdk'; ... FlareLane.setLogLevel('verbose'); FlareLane.setConvertedHandler((notification) => { // do somthing... }); await FlareLane.initialize({ projectId: 'projectId' }); ... ```