Push Notification vs. Web Sockets for implementing a real-time chat app?

APNS is not 100% reliable. It is in most cases, but not 100%. It is also not as quick as a dedicated service you would offer. Sometimes, push messages take upwards of one minute to arrive. You need to consider these and take it into consideration in any design you come up with. If you … Read more

Open PWA when clicking on push notification handled by service-worker ng7 + android

Though the provided solutions work, it will be nice to have an approach which does not modify service worker code in node_modules or the generated code. The approach can be to create another script named custom-service-worker.js In this file, importScripts(‘./ngsw-worker.js’); (function () { ‘use strict’; self.addEventListener(‘notificationclick’, (event) => { console.log(“This is custom service worker notificationclick … Read more

APNS (Apple Push Notification Service) reliability

APNS is based on Apple Servers, and Apple doesn’t give any guarantee on successful message delivery. If the app is open (i.e. the user is using the app) while the notification arrives, iOS doesn’t show a notification message, you need to handle it. Notification shows up only when the app is backgrounded or killed. Also … Read more

Ask permission for push notification

UPDATE 2022 The way we request permissions on Android has changed drastically with Android 13. Please see other answers below that mention the same. As answered here, you don’t need permissions for push notifications. Actually the push notification permission lie in the normal category permission like Internet permission, not in dangerous category permission. You don’t … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)