Skip to content

Custom data plan doesn't refresh after expiration #227

Open
@buttercookie42

Description

@buttercookie42

Checklist

  • I am able to reproduce the bug with the latest version.
  • I made sure that there are no existing issues - open or closed.
  • I have taken the time to fill in all the required details in an appropriate descriptive way. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.

Affected app version

v2.4.0

Steps to reproduce the bug

  1. Create a custom data plan and set it to automatically refresh.
  2. Reboot your phone at least once.
  3. Wait for the data plan to expire.

Expected behavior

It refreshes for the next period.

Actual behavior

The old plan remains active.

Screenshots/Screen recordings

No response

Logs

No response

Affected Android/Custom ROM version

Android 14

Affected device model

Sony Xperia 10 V

Additional context

As far as I can tell, data plan refresh only works via alarms (i.e. there's no fallback check for an outdated data plan when opening the app) and setRefreshAlarm() only gets called when the data plan settings are updated, or else when the previous alarm fires.

However AlarmManager alarms all expire if the device is rebooted and have to be re-set after afterwards when receiving ACTION_BOOT_COMPLETED or whatever other way might be appropriate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions