0.0.1 • Published 4 years ago
resulwebsdk-react v0.0.1
Import with following code
import ResulWebSdk from 'resulwebsdk-react';
Initialize with following code
let Rewebsdk = new ResulWebSdk({
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');
0.0.1
4 years ago