0.0.14 • Published 3 years ago
rewebsdk-react v0.0.14
Import with following code
import ReWebSdk from 'rewebsdk-react';
Initialize with following code
let Rewebsdk = new ReWebSdk({
appConfig: {
tenantName: "",
tenantId: "",
tenant_ga:""
},
pushNotification: {
pushConfig: {
apiKey: "",
authDomain: "",
databaseURL: "",
projectId: "",
storageBucket: "",
messagingSenderId: ""
},
pushHeaderKey: "",
serviceworkerfile : ""
}
});
Rewebsdk.initialize();
Add the following importscript in the serviceworkerfile
importScripts('https://sdk.resu.io/Scripts/push-sw.js');