0.0.2 • Published 6 months ago

rewebsdk-react-ttdl v0.0.2

Weekly downloads
2
License
ISC
Repository
-
Last release
6 months ago

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');
0.0.2

6 months ago

0.0.1

4 years ago