diff --git a/packages/ring-client-api/api.ts b/packages/ring-client-api/api.ts index 88a4ceb6..319ef1ec 100644 --- a/packages/ring-client-api/api.ts +++ b/packages/ring-client-api/api.ts @@ -292,6 +292,15 @@ export class RingApi extends Subscribed { }), ) + pushReceiver.on('ON_DISCONNECT', () => { + pushReceiver.whenReady + .catch((e) => { + logError('Connection to the push notification server has failed unexpectedly') + logError('If this happens repeatedly, verify connections to TCP/5228 are allowed and that DNS Adblock rules allow gtalk.google.com') + logError(e.message) + }) + }) + try { await pushReceiver.connect() } catch (e) {