oblivion
oblivion copied to clipboard
Enhance VPN Service Notifications with Dynamic State and Mode Information
This pull request improves the user experience by enhancing the VPN service notifications with dynamic state and mode information.
Key changes:
- Updated the createNotification method to display the current connection state in the notification title.
- The getNotificationTitle method was added to generate appropriate titles based on the connection state (Connecting, Connected, Disconnected).
- Introduced the getNotificationContent method to provide detailed information about the current VPN mode (Proxy/VPN) and settings (Psiphon, Warp, port).
- Modified setLastKnownState method to update the notification whenever the connection state changes.
These changes will provide users with more immediate and detailed information about the VPN service status directly from the notification, improving the overall usability and transparency of the application.
Testing:
- Tested the notification updates across different connection states and modes.
- Verified that the notification content accurately reflects the current settings and mode.
Please review and let me know if any further adjustments are needed.