mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
fix table notification permision and chat open conversation
This commit is contained in:
@@ -73,8 +73,14 @@ export class NotificationsService {
|
||||
PushNotifications.requestPermissions().then(async (result) => {
|
||||
if (result.receive === 'granted') {
|
||||
// Register with Apple / Google to receive push via APNS/FCM
|
||||
PushNotifications.register();
|
||||
this.getAndpostToken("")
|
||||
try {
|
||||
PushNotifications.register().catch((error) => {
|
||||
console.log("Register device", error)
|
||||
})
|
||||
this.getAndpostToken("")
|
||||
} catch (error) {
|
||||
console.log("Granted permission error", error)
|
||||
}
|
||||
} else {
|
||||
// Show some error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user