remove white background

This commit is contained in:
Equilibrium ITO
2024-03-03 18:19:04 +01:00
parent a8cb5c1374
commit 2d5bfbd8a3
5 changed files with 102 additions and 6 deletions
+9 -3
View File
@@ -65,6 +65,7 @@ export class NotificationsService {
}
requestPermissions() {
console.log('init notificaton permission')
if (this.platform.is('mobile')) {
if (!this.isPushNotificationsAvailable) {
@@ -72,17 +73,22 @@ export class NotificationsService {
}
PushNotifications.requestPermissions().then(async (result) => {
if (result.receive === 'granted') {
console.log('permission granted')
// Register with Apple / Google to receive push via APNS/FCM
try {
PushNotifications.register().catch((error) => {
console.log("Register device", error)
PushNotifications.register().then((value) => {
console.log("Register device", value)
this.getAndpostToken("")
}) .catch((error) => {
console.log("Register device error", error)
})
this.getAndpostToken("")
} catch (error) {
console.log("Granted permission error", error)
}
} else {
// Show some error
console.log('permission notification erro')
}
});
} else {
@@ -60,5 +60,5 @@
.desk{
text-align: left;
background-color: white;
background-color: transparent;
}
@@ -59,5 +59,5 @@
.desk{
text-align: left;
background-color: white;
background-color: transparent;
}
+1 -1
View File
@@ -4,4 +4,4 @@ import { doneITDev } from './suport/doneIt'
import { DevDev } from './suport/dev'
export const environment: Environment = oaprDev
export const environment: Environment = DevDev