My project is a "Background Reminder". I use Timer to track the reminder time.
I asked ChatGPT to analyze my project. They gave me the following recommendations:
- Background logic depends on Timer
- On Android 36, the service may be stopped
- Use ForegroundService / alarms
The standard StartReceiverAt is inexact, in order to allow the OS to make optimizations. Worth reading: https://developer.android.com/training/scheduling/alarms Exact scheduling: 1. AddPermission(android.permission.SCHEDULE_EXACT_ALARM) 2. Private ion As Object - class global 3. Private...