0.0.3 • Published 5 years ago
resulwebsdk-utimf-angular v0.0.3
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');