0.0.1 • Published 5 years ago

resul-angularsdk-utf v0.0.1

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

Import with following code (app.component.ts)

import ResulWebSdk from 'resulwebsdk-angular';

Initialize with following code with respective details inside constructor (app.component.ts)

constructor() {
	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');