Fix terminal errors

This commit is contained in:
Peter Maquiran
2021-08-31 13:46:39 +01:00
parent ea07cbd8d0
commit 6a88bd0b20
5 changed files with 30 additions and 8 deletions
+3 -3
View File
@@ -16,9 +16,9 @@ const { Storage } = Plugins; */
private platform: Platform
) {}
key(key) {
this.keyName = (SHA1('service'+this.constructor.name+key)).toString()
}
key(key:string): string {
return (SHA1('service'+this.constructor.name+key)).toString()
}
// Store the value
async store(key: string, value: any) {
@@ -40,6 +40,18 @@ export class WebNotificationsService {
MFPPush.registerDevice()
.then((res) => {
console.log("WEB Successfully Registered Device...");
setTimeout(()=>{
MFPPush.registerDevice()
.then((res) => {
console.log("WEB Successfully Registered Device...");
})
.catch((err) => {
console.log("WEB Registration Failed" + err);
});
}, 1000)
})
.catch((err) => {
console.log("WEB Registration Failed" + err);