mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
Fix terminal errors
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user