Push Notifications
Mole supports a notification system that providers can send to their users.
How it works
Unlike standard Firebase notifications, Mole uses a Pull model. With each subscription update, the application checks for new messages in the profile-announce header or the subscription's JSON response.
Notification Types
1. Informational (Announce)
Appear as a Snackbar or a dialog box when the application is opened.
profile-announce: Dear users, technical maintenance will take place on German servers on August 3rd.
2. Critical
If a subscription returns a 403 status with a message, Mole will display it as a critical error (e.g., "Your balance is exhausted").
Advantages
- Privacy: We do not use Google Push Services for this, which eliminates the possibility of corporate user tracking.
- Reliability: The notification is guaranteed to arrive at the moment of a connection attempt or update.