Edit websnotification file

This commit is contained in:
Eudes Inácio
2021-06-30 15:33:12 +01:00
parent a8c4ab0bca
commit 89afc95c32
2 changed files with 17 additions and 13 deletions
+12 -12
View File
@@ -30,22 +30,22 @@ export class WebNotificationsService {
webconnection() {
WL.Client.init(this.wlInitOptions)
var pushInitOptions = {
MFPPush.initialize({
appId: "com.gpr.gabinetedigital",
serverUrl:"http://gpr-dev-10.gabinetedigital.local:9080/",
//safariWebsitePushId:"web.com.mfp-server-url"
};
MFPPush.initialize(pushInitOptions);
mfpContextRoot: "/mfp",
});
MFPPush.registerDevice()
.then((res) => {
alert("WEB Successfully Registered Device...");
})
.catch((err) => {
console.log("WEB Registration Failed" + err);
});
}
wlInitOptions = {
mfpContextRoot : '/mfp', // "mfp" is the default context root in the Mobile Foundation
applicationId : 'com.gpr.gabinetedigital', // Replace with your own value.
sessionMode : true //This is an optional paramter. Setting this to true ensures that MFP related data is stored in the session rather than in the local storage. If this option is set to false or not set at all, default is local storage.
};
async onReceviNotificationWeb() {
WLAuthorizationManager.obtainAccessToken("push.mobileclient").then(
(token) => {