pushwoosh-react-native-baidu-plugin

1.0.1 • Public • Published

React Native Pushwoosh Baidu Push Notifications module

Guide Documentation Sample

Installation

npm install pushwoosh-react-native-baidu-plugin --save
react-native link pushwoosh-react-native-baidu-plugin

Usage

import Pushwoosh from 'pushwoosh-react-native-baidu-plugin';
 
Pushwoosh.init({ 
    "pw_appid" : "YOUR_PUSHWOOSH_PROJECT_ID" , 
    "secret_key" : "YOUR_BAIDU_SECRET_KEY" 
});
Pushwoosh.register();

In order to use reverse proxy to connect to pushwoosh servers specify the parameter "reverse_proxy_url" with the url to your reverse proxy when initializing the plugin:

import Pushwoosh from 'pushwoosh-react-native-baidu-plugin';
 
Pushwoosh.init({ 
    "pw_appid" : "YOUR_PUSHWOOSH_PROJECT_ID" , 
    "secret_key" : "YOUR_BAIDU_SECRET_KEY",
    "reverse_proxy_url" : "URL_TO_YOUR_REVERSE_PROXY"
});
Pushwoosh.register();

Readme

Keywords

Package Sidebar

Install

npm i pushwoosh-react-native-baidu-plugin

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

806 kB

Total Files

34

Last publish

Collaborators

  • pushwoosh-max