mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
Edit websnotification file
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user